Skip to content

Commit

Permalink
Add default with comments for pipe log
Browse files Browse the repository at this point in the history
  • Loading branch information
paulcsmith committed Mar 24, 2020
1 parent 6fc7432 commit 0b2f8bf
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/web_app_skeleton/config/logger.cr
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,20 @@ Lucky.configure do |settings|
settings.logger = logger
end

Lucky::Action.configure do |settings|
# By default Lucky only logs when before/after pipes halt by redirecting, or
# rendering a response.
#
# Set 'pipe_log_level' to a 'Logger::Severity' to log whenever any pipe runs.
#
# For example:
#
# settings.pipe_log_level = Logger::Severity::DEBUG
#
# Full list of log levels: https://crystal-lang.org/api/Logger/Severity.html#enum-members
settings.pipe_log_level = nil
end

Lucky::LogHandler.configure do |settings|
# Skip logging static assets in development
if Lucky::Env.development?
Expand Down

0 comments on commit 0b2f8bf

Please # to comment.