Method: Logoris#initialize
- Defined in:
- lib/logoris.rb
#initialize(args = {}) ⇒ void
21 22 23 24 25 26 27 28 |
# File 'lib/logoris.rb', line 21 def initialize(args={}) @out_file = false # Do not log stdout events to a file by default. @error_file = false # Do not log stderr events to a file by default. @log_file = false # Do not log both stdout and stderr events to a file by default. out_file = args[:out_file] if args[:out_file] # Set file for stdout, if given. error_file = args[:error_file] if args[:error_file] # Set file for stderr, if given. log_file = args[:log_file] if args[:log_file] # Set file for stdout and stderr, if given. end |