Class: ZgcpToolkit::Logger::Stdout
- Inherits:
-
Object
- Object
- ZgcpToolkit::Logger::Stdout
- Defined in:
- lib/zgcp_toolkit/logger/stdout.rb
Instance Attribute Summary collapse
-
#log_name ⇒ Object
readonly
Returns the value of attribute log_name.
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
Instance Method Summary collapse
- #flush! ⇒ Object
-
#initialize(log_name) ⇒ Stdout
constructor
A new instance of Stdout.
Constructor Details
#initialize(log_name) ⇒ Stdout
Returns a new instance of Stdout.
8 9 10 11 |
# File 'lib/zgcp_toolkit/logger/stdout.rb', line 8 def initialize(log_name) @log_name = log_name.to_s @logger = ::Logger.new(STDOUT) end |
Instance Attribute Details
#log_name ⇒ Object (readonly)
Returns the value of attribute log_name.
6 7 8 |
# File 'lib/zgcp_toolkit/logger/stdout.rb', line 6 def log_name @log_name end |
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
6 7 8 |
# File 'lib/zgcp_toolkit/logger/stdout.rb', line 6 def logger @logger end |
Instance Method Details
#flush! ⇒ Object
19 20 21 |
# File 'lib/zgcp_toolkit/logger/stdout.rb', line 19 def flush! # no-op end |