Skip to content

Commit

Permalink
Added levels method
Browse files Browse the repository at this point in the history
  • Loading branch information
colbygk committed May 20, 2010
1 parent 75eca1c commit 4560288
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/log4r/logger.rb
Expand Up @@ -78,6 +78,11 @@ def level=(_level)
@level
end

# Return array of defined levels.
def levels
LNAMES
end

# Set the additivity of the logger dynamically. True or false.
def additive=(_additive)
@additive = _additive
Expand Down

0 comments on commit 4560288

Please sign in to comment.