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

add option to avoid logger add current time #21

Closed
nbari opened this issue Aug 1, 2017 · 1 comment
Closed

add option to avoid logger add current time #21

nbari opened this issue Aug 1, 2017 · 1 comment

Comments

@nbari
Copy link
Member

nbari commented Aug 1, 2017

The default logger writes to file using the current time as a prefix, for example:

2017-07-30T02:27:33.285542198Z 2017/07/30 02:27:33  [http://sign-io.appspot.com/] 200 946 806.40384ms 

But when the app add its own format it may be desired to just write to the log exactly that the app is sending.

probably add a timestamp bool option:

log:
    file: /var/log/app-1.log
    age: 86400 # seconds
    num: 7     # int
    size: 1    # MegaBytes
    timestamp: false
@nbari
Copy link
Member Author

nbari commented Aug 1, 2017

Fixed on 0.15.0

if timestamp set to true it will prefix with time

@nbari nbari closed this as completed Aug 1, 2017
@nbari nbari added the fixed label Aug 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant