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

Option for disabling log rotation? #82

Open
soemo opened this issue Aug 20, 2012 · 7 comments
Open

Option for disabling log rotation? #82

soemo opened this issue Aug 20, 2012 · 7 comments

Comments

@soemo
Copy link

soemo commented Aug 20, 2012

Hi,

is there a option in the config to stop the log rotation?

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@kares
Copy link
Member

kares commented Aug 20, 2012

sorry not really yet (just like in TC), but there will be, somewhere along the next release(s), I did not want to add a separate option for that as I'd like a logging configuration to be fully customizable from trinidad.yml. for now you need to use 1.3 or change it and use a custom version https://github.com/trinidad/trinidad/blob/master/lib/trinidad/logging.rb#L79

@tolsen
Copy link

tolsen commented Oct 16, 2012

Hi @kares . I've turned off logging here in my own custom version: https://github.com/tolsen/trinidad/blob/jux/lib/trinidad/logging.rb#L79

But now I am not seeing any requests being logged. If I turn rotation back on, I see requests being logged again. I don't know if it's relevant but I am setting :log_dir. Just in case, I checked the default location for the logs and I don't see anything there either

Any idea what's happening?

kares added a commit that referenced this issue Oct 17, 2012
(reported as a comment for the proposed work-around #82)
kares added a commit that referenced this issue Oct 17, 2012
- mainly to not require hacks for disabling rotation ...
@kares
Copy link
Member

kares commented Oct 17, 2012

@tolsen there was a bug 5fb7e0a

I'm sorry this feature is coming a bit late since there were quite a few things planned about the logging configuration in my head - nevertheless, to get somewhere there's now unofficial support for configuring the file handler on master :

  logging:
    file:
      rotate: false
      prefix: "myapp"
      suffix: .log
      directory: /opt/myapp/custom-log-dir
      buffer_size: 4096

this should work with the next release 1.4.4 but do not take my word for it (might slightly change) ...

@tolsen
Copy link

tolsen commented Oct 17, 2012

Thanks again Karol! :-) I'll watch out for any changes. Btw, it appears that the correct key for specifying the directory is :dir

@mohamedhafez
Copy link

So does the configuration shown above work in 1.4.4 to turn off log rotation?

@kares
Copy link
Member

kares commented Mar 19, 2013

yes, it's just not officially supported yet ... since it should generically handle all possible JUL configurations

@soemo
Copy link
Author

soemo commented Aug 13, 2013

Hi, the inofficial configuration works for me.

logging:
    file:
      rotate: false

When is this feature official documented? At this point we can close this issue.

@kares kares modified the milestones: 1.5.0, 1.4.7 Mar 26, 2014
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

4 participants