Class: EasySwig::Logger
- Inherits:
-
Object
- Object
- EasySwig::Logger
- Defined in:
- lib/util/logger.rb
Class Method Summary collapse
- .close_logs ⇒ Object
- .csv_log(dir) ⇒ Object
- .doxy_log(dir) ⇒ Object
- .gen_log(dir = nil) ⇒ Object
- .log(msg) ⇒ Object
- .node_log(dir = nil) ⇒ Object
- .swig_log(dir) ⇒ Object
Class Method Details
.close_logs ⇒ Object
31 32 |
# File 'lib/util/logger.rb', line 31 def close_logs end |
.csv_log(dir) ⇒ Object
23 24 25 |
# File 'lib/util/logger.rb', line 23 def csv_log dir @csv_log ||= ::Logger.new(File.open("#{dir}/generate.log", File::WRONLY | File::APPEND | File::CREAT)) end |
.doxy_log(dir) ⇒ Object
6 7 8 9 |
# File 'lib/util/logger.rb', line 6 def doxy_log dir file = File.open("#{dir}/doxygen.log", File::WRONLY | File::APPEND | File::CREAT) @doxy_log ||= ::Logger.new(file) end |
.gen_log(dir = nil) ⇒ Object
15 16 17 |
# File 'lib/util/logger.rb', line 15 def gen_log dir=nil @gen_log ||= ::Logger.new(File.open("#{dir}/generate.log", File::WRONLY | File::APPEND | File::CREAT)) end |
.log(msg) ⇒ Object
11 12 13 |
# File 'lib/util/logger.rb', line 11 def log msg @gen_log.info msg end |
.node_log(dir = nil) ⇒ Object
19 20 21 |
# File 'lib/util/logger.rb', line 19 def node_log dir=nil @gen_log end |
.swig_log(dir) ⇒ Object
27 28 29 |
# File 'lib/util/logger.rb', line 27 def swig_log dir @swig_log ||= ::Logger.new(File.open("#{dir}/swig.log", File::WRONLY | File::APPEND | File::CREAT)) end |