Skip to content

Commit

Permalink
Merge branch 'pr/649-docs'
Browse files Browse the repository at this point in the history
  • Loading branch information
xsawyerx committed Sep 12, 2014
2 parents 196f074 + fa0c99f commit cdf2883
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

[ DOCUMENTATION ]
* GH #667: Fix typo in cookbook pod. (Lindsey Beesley)
* GH #649, #670: Document core logger. (simbabque)

0.150000 2014-08-17 01:35:16CEST+0200 Europe/Amsterdam

Expand Down
4 changes: 3 additions & 1 deletion lib/Dancer2/Manual.pod
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,7 @@ start the logger engine in your config file:

Then you can choose which kind of messages you want to actually log:

log: 'core' # will log all messages, including some from Dancer2 itself
log: 'debug' # will log debug, info, warning and errors
log: 'info' # will log info, warning and errors
log: 'warning' # will log warning and errors
Expand All @@ -595,7 +596,8 @@ A directory appdir/logs will be created and will host one logfile per
environment. The log message contains the time it was written, the PID of the
current process, the message and the caller information (file and line).

To log messages, use the debug, info, warning and error methods, for instance:
To log messages, use the C<debug>, C<info>, C<warning> and C<error> methods,
for instance:

debug "This is a debug message";

Expand Down

0 comments on commit cdf2883

Please sign in to comment.