Class: ZgcpToolkit::Logger::Stdout

Inherits:
Object
  • Object
show all
Defined in:
lib/zgcp_toolkit/logger/stdout.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_nameObject (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

#loggerObject (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