We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Configuring the logger to suit your needs is totally possible with Padrino.
The easiest way is to set the options in config/boot.rb, anytime before Padrino.load!.
config/boot.rb
Padrino.load!
Padrino::Logger::Config[:development] = { :log_level => :devel, :format_datetime => " [%Y-%m-%d %H:%M:%S] ", :stream => :to_file }
If you want to redefine your logger at a later stage in your app you will need to run Padrino::Logger.setup! right after your new logger settings.
Padrino::Logger.setup!
TODO: Explain the options.
Implementation reference.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Configuring the logger to suit your needs is totally possible with Padrino.
The easiest way is to set the options in
config/boot.rb
, anytime beforePadrino.load!
.Padrino::Logger::Config[:development] = { :log_level => :devel, :format_datetime => " [%Y-%m-%d %H:%M:%S] ", :stream => :to_file }
If you want to redefine your logger at a later stage in your app you will need to run
Padrino::Logger.setup!
right after your new logger settings.TODO: Explain the options.
Implementation reference.
The text was updated successfully, but these errors were encountered: