Class: Stenohttp2::Common::Logger
- Inherits:
- 
      Object
      
        - Object
- Stenohttp2::Common::Logger
 
- Defined in:
- lib/stenohttp2/common/logger.rb
Constant Summary collapse
- DEFAULT_STREAM_IDENTIFIER =
- 1
Instance Method Summary collapse
- #info(msg) ⇒ Object
- 
  
    
      #initialize(id = DEFAULT_STREAM_IDENTIFIER)  ⇒ Logger 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Logger. 
Constructor Details
#initialize(id = DEFAULT_STREAM_IDENTIFIER) ⇒ Logger
Returns a new instance of Logger.
| 15 16 17 | # File 'lib/stenohttp2/common/logger.rb', line 15 def initialize(id = DEFAULT_STREAM_IDENTIFIER) @id = id end | 
Instance Method Details
#info(msg) ⇒ Object
| 19 20 21 | # File 'lib/stenohttp2/common/logger.rb', line 19 def info(msg) puts "[Stream #{@id}]: #{msg}" end |