Class: PlayHistory
- Inherits:
-
Object
- Object
- PlayHistory
- Defined in:
- lib/terminal_player/play_history.rb
Class Method Summary collapse
Class Method Details
.write(path, message) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/terminal_player/play_history.rb', line 5 def self.write(path, ) FileUtils.mkdir_p(path) logger = Logger.new("#{path}/play_history.log", 'daily') logger.formatter = proc do |severity, datetime, progname, msg| "#{msg}\n" end logger.info() logger.close end |