Skip to content

Commit

Permalink
Update readme with global logger
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxim-Filimonov committed May 31, 2013
1 parent deefcfa commit e73a68f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Expand Up @@ -117,6 +117,9 @@ you are good to go.
# Before you can use it, you will need to define a logger and
# provide it with the `:name` of your class.
Yell.new :stdout, :name => 'Foo'
# As alternative you can register a global logger
# which is gonna be used if no named logger for a class found
Yell.new :stdout, :name => :global

class Foo
include Yell::Loggable
Expand Down

0 comments on commit e73a68f

Please sign in to comment.