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

stderr log file #22

Closed
nbari opened this issue Aug 21, 2017 · 2 comments
Closed

stderr log file #22

nbari opened this issue Aug 21, 2017 · 2 comments

Comments

@nbari
Copy link
Member

nbari commented Aug 21, 2017

Be available to specify a file only for writing logs related only to stderr, probably something like this:

    log:
        file: /var/log/app/access.log
        age: 86400
        num: 3
        size: 1
    stderr:
        file: /var/log/app/error.log
        age: 86400
        num: 3
        size: 1

The complexity of this is the creation of another pair of pipes only for the stderr and another logger that both file/err should be rotated on the defined period

@nbari
Copy link
Member Author

nbari commented Aug 23, 2017

Create 3 log options, keep it simple by just adding an option to write stderr and not merging it into the default log

If log, stdout & stderr will be combined. (default and used also for a custom logger)

log:
  file: /var/log/app/access.log
  age: 86400
  num: 3
  size: 1

if stderr_log stderr, the log file will contain only standard output and the standard error will be written to the defined file.

log:
  file: /var/log/app/access.log
  age: 86400
  num: 3
  size: 1
stderr:
  file: /var/log/app/error.log
  age: 86400
  num: 3
  size: 1

If only stderr there will be no stdout:

stderr:
  file: /var/log/app/error.log
  age: 86400
  num: 3
  size: 1

@nbari
Copy link
Member Author

nbari commented Sep 7, 2017

implemented on 0.16.0

@nbari nbari closed this as completed Sep 7, 2017
@nbari nbari added the fixed label Sep 7, 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