Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Specify date format for logging #35

Open
psde opened this issue Nov 23, 2015 · 1 comment
Open

Feature request: Specify date format for logging #35

psde opened this issue Nov 23, 2015 · 1 comment
Labels

Comments

@psde
Copy link
Contributor

psde commented Nov 23, 2015

I am redirecting the output of tarsnapper to a log file, and I would like to have the log to have timestamps as well.
The used logging library is already supporting this: https://docs.python.org/2/library/logging.html#logging.basicConfig

I am up for implementing this, but I am unsure if this should be part of the config or part of the command line interface, or even both.

@miracle2k
Copy link
Owner

I'd go with a "log-format" command line argument for now, which I think would be easier to implement.

Another option might be detecting if the terminal is interactive or not, and automatically adjusting the log format accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants