Class: Dugway::Logger
- Inherits:
-
Logger
- Object
- Logger
- Dugway::Logger
- Defined in:
- lib/dugway/logger.rb
Instance Method Summary collapse
- #dir ⇒ Object
-
#initialize ⇒ Logger
constructor
A new instance of Logger.
Constructor Details
#initialize ⇒ Logger
Returns a new instance of Logger.
5 6 7 8 |
# File 'lib/dugway/logger.rb', line 5 def initialize Dir.mkdir(dir) unless File.exists?(dir) super(File.join(dir, 'dugway.log')) end |
Instance Method Details
#dir ⇒ Object
10 11 12 |
# File 'lib/dugway/logger.rb', line 10 def dir File.join(Dir.pwd, 'log') end |