Method: Fuse.log
- Defined in:
- lib/fuse.rb
.log(message, type = nil) ⇒ Object
24 25 26 27 |
# File 'lib/fuse.rb', line 24 def log(, type = nil) colour = 30 + (LOG_COLOURS[type] || LOG_COLOURS[:info]) log_file.puts "\x1b[#{colour}m#{message}\x1b[0m" end |