Class: MsTeamsNotification::Logger
- Inherits:
-
Object
- Object
- MsTeamsNotification::Logger
- Includes:
- Singleton
- Defined in:
- lib/ms_teams_notification/logger.rb
Instance Method Summary collapse
-
#initialize ⇒ Logger
constructor
A new instance of Logger.
- #msg(*message, level: :info) ⇒ Object
Constructor Details
#initialize ⇒ Logger
Returns a new instance of Logger.
8 9 10 11 |
# File 'lib/ms_teams_notification/logger.rb', line 8 def initialize @logger = ::Logger.new $stdout @logger.level = ::Logger::DEBUG end |
Instance Method Details
#msg(*message, level: :info) ⇒ Object
13 14 15 |
# File 'lib/ms_teams_notification/logger.rb', line 13 def msg *, level: :info @logger.send level.to_s, .join("").to_s if @logger.respond_to?(level) end |