Skip to content

Commit

Permalink
Merge branch 'fix/gh-1153'
Browse files Browse the repository at this point in the history
  • Loading branch information
xsawyerx committed Apr 8, 2016
2 parents 4b4c7bf + 88ff227 commit 10ab958
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
4 changes: 4 additions & 0 deletions README.mkdn
Expand Up @@ -169,6 +169,8 @@ Returns the current runner. It is of type [Dancer2::Core::Runner](https://metacp
Jakob Voss
James Aitken
James Raspass
James McCoy
Jason Lewis
Javier Rojas
Jean Stebens
Jens Rehsack
Expand All @@ -187,6 +189,7 @@ Returns the current runner. It is of type [Dancer2::Core::Runner](https://metacp
Matt S Trout
Maurice
Menno Blom
Michael Kröll
Michał Wojciechowski
Mohammad S Anwar
mokko
Expand Down Expand Up @@ -216,6 +219,7 @@ Returns the current runner. It is of type [Dancer2::Core::Runner](https://metacp
Tom Hukins
Upasana Shukla
Vernon Lyon
Victor Adam
Vince Willems
Vincent Bachelier

Expand Down
21 changes: 15 additions & 6 deletions lib/Dancer2/Logger/File.pm
Expand Up @@ -115,9 +115,21 @@ engine in a Dancer2 application.
The follow attributes are supported:
=for :list
* log_dir -- directory path to hold log files. Defaults to F<logs> in the application directory
* file_name -- the name of the log file. Defaults to the environment name with a F<.log> suffix
=over 4
=item * C<log_dir>
Directory path to hold log files.
Defaults to F<logs> in the application directory
=item * C<file_name>
The name of the log file.
Defaults to the environment name with a F<.log> suffix
=back
Here is an example configuration that use this logger and stores logs in F</var/log/myapp>:
Expand All @@ -129,9 +141,6 @@ Here is an example configuration that use this logger and stores logs in F</var/
log_dir: "/var/log/myapp"
file_name: "myapp.log"
=head1 METHODS
=method log($level, $message)
Writes the log message to the file.

0 comments on commit 10ab958

Please sign in to comment.