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
36 37 38 39 40 41 |
# File 'lib/faastruby/server/logger.rb', line 36 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
43 44 45 46 47 48 |
# File 'lib/faastruby/server/logger.rb', line 43 def puts(msg) STDOUT_MUTEX.synchronize do STDOUT.puts "#{Time.now} | #{msg}".yellow STDOUT.puts "---".yellow end end |
#tag ⇒ Object
31 32 33 34 |
# File 'lib/faastruby/server/logger.rb', line 31 def tag return "(#{self.name.split('::').last})" if self.is_a? Class return "(#{self.class.name.split('::').last})" end |