Module: FaaStRuby::Logger::System
- Included in:
- EventHub
- Defined in:
- lib/faastruby/server/logger.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.puts(msg) ⇒ Object
35 36 37 38 39 40 |
# File 'lib/faastruby/server/logger.rb', line 35 def self.puts(msg) STDOUT_MUTEX.synchronize do STDOUT.puts "#{Time.now} | #{msg}".yellow STDOUT.puts "---".yellow end end |
Instance Method Details
#puts(msg) ⇒ Object
42 43 44 45 46 47 |
# File 'lib/faastruby/server/logger.rb', line 42 def puts(msg) STDOUT_MUTEX.synchronize do STDOUT.puts "#{Time.now} | #{msg}".yellow STDOUT.puts "---".yellow end end |
#tag ⇒ Object
30 31 32 33 |
# File 'lib/faastruby/server/logger.rb', line 30 def tag return "(#{self.name.split('::').last})" if self.is_a? Class return "(#{self.class.name.split('::').last})" end |