# configuration file for development environment
# the logger engine to use
# console: log messages to STDOUT (your console where you started the
# application server)
# file: log message to a file in log/
# logger: "console"
logger: "Console::Colored"
# the log level for this environment
# core is the lowest, it shows Dancer2's core log messages as well as yours
# (debug, info, warning and error)
log: "core"
# should Dancer2 show a stacktrace when an 5xx error is caught?
# if set to yes, public/500.html will be ignored and either
# views/500.tt, 'error_template' template, or a default error template will be used.
show_stacktrace: 1
# print the banner
startup_info: 1
engines:
logger:
Console::Colored:
# log_format: "[%a:%P] %L @%T> %m in %f l. %l" # default
# %a = app name (Routes), probably no point using it
# %m = message (eg "looking for get /"
# %L = log level eg cure, debug, error - not needed due to colour-coding
# %t = date/time in %d/%b/%Y %H:%M:%S format (does not adjust for BST !!)
# %T = date/time in %Y-%m-%d %H:%M:%S format (does not adjust for BST !!)
# %f = caller(8)[1] eg [..]/Dancer2/Core/App.pm, [..]/Dancer2/Plugin.pm
# %l = line number
log_format: "[%t:%L] %m %f:%l"
# all colours supported by Term::ANSIColor
colored_origin: "italic faint yellow"
colored_levels:
core: "bold bright_white"
debug: "bold bright_blue"
info: "bold green"
warning: "bold yellow"
error: "bold bright_red" # "bold yellow on_red"
colored_messages:
core: "bold bright_white"
debug: "bold bright_blue"
info: "bold green"
warning: "bold yellow"
error: "bold bright_red" # "bold yellow on_red"
colored_regex: # these don't work for outside input eg DBI trace or Plack::Middleware::AccessLog
- re: ".+trace.+" # doesn't work for DBI trace output
color: "bold red"
- re: ".+AccessLog.+" # doesn't work for Plack::Middleware::AccessLog output
color: "bold red"
#- re: ".+files.+" # to test
# color: "bold yellow"