Class: CASClient::Logger
- Inherits:
-
Logger
- Object
- Logger
- CASClient::Logger
- Defined in:
- lib/casclient.rb
Overview
Customized logger for the client. This is useful if you’re trying to do logging in Rails, since Rails’ clean_logger.rb pretty much completely breaks the base Logger class.
Defined Under Namespace
Classes: Formatter
Instance Method Summary collapse
- #break ⇒ Object
- #format_message(severity, datetime, progrname, msg) ⇒ Object
-
#initialize(logdev, shift_age = 0, shift_size = 1048576) ⇒ Logger
constructor
A new instance of Logger.
Constructor Details
Instance Method Details
#break ⇒ Object
33 34 35 |
# File 'lib/casclient.rb', line 33 def break self << $/ end |
#format_message(severity, datetime, progrname, msg) ⇒ Object
29 30 31 |
# File 'lib/casclient.rb', line 29 def (severity, datetime, progrname, msg) (@formatter || @default_formatter).call(severity, datetime, progname, msg) end |