Sha256: b81c766eb2dae4dfb71ba807e2a0ab856a52cdade3f3255fc5a6597680c0d450
Contents?: true
Size: 341 Bytes
Versions: 2
Compression:
Stored size: 341 Bytes
Contents
require 'logger' require 'fileutils' module Space class App class Logger < ::Logger def initialize truncate super('/tmp/space.log') end def truncate File.open(filename, 'w+') { |f| f.write('-' * 80 + "\n") } end def filename '/tmp/space.log' end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
space-0.0.5 | lib/space/app/logger.rb |
space-0.0.4 | lib/space/app/logger.rb |