Class: Cfruby::Cfp_LibLogger
- Inherits:
-
Object
- Object
- Cfruby::Cfp_LibLogger
- Defined in:
- lib/libcfenjin/cfp_liblogger.rb
Overview
Implementation of the CfrubyLogger class which handles the Cfruby-engine type logging from the library - this class calls into Cfp_Logger
Instance Method Summary collapse
- #acting(msg = nil) ⇒ Object
- #change(level, msg, progname = nil) ⇒ Object
- #debug(level, msg, progname = nil) ⇒ Object
- #error(level, msg, progname = nil) ⇒ Object
- #fatal(level, msg, progname = nil) ⇒ Object
- #help(msg, action = 'unknown') ⇒ Object
- #info(level, msg, progname = nil) ⇒ Object
-
#initialize(logger) ⇒ Cfp_LibLogger
constructor
A new instance of Cfp_LibLogger.
- #status(msg = nil) ⇒ Object
- #testing(msg = nil) ⇒ Object
- #warn(level, msg, progname = nil) ⇒ Object
Constructor Details
#initialize(logger) ⇒ Cfp_LibLogger
Returns a new instance of Cfp_LibLogger.
14 15 16 |
# File 'lib/libcfenjin/cfp_liblogger.rb', line 14 def initialize logger @cfp_logger = logger end |
Instance Method Details
#acting(msg = nil) ⇒ Object
30 31 32 |
# File 'lib/libcfenjin/cfp_liblogger.rb', line 30 def acting(msg=nil) @cfp_logger.acting(msg) end |
#change(level, msg, progname = nil) ⇒ Object
38 39 40 |
# File 'lib/libcfenjin/cfp_liblogger.rb', line 38 def change(level,msg,progname=nil) @cfp_logger.change level,msg,progname end |
#debug(level, msg, progname = nil) ⇒ Object
42 43 44 |
# File 'lib/libcfenjin/cfp_liblogger.rb', line 42 def debug(level,msg,progname=nil) @cfp_logger.trace level,msg,progname end |
#error(level, msg, progname = nil) ⇒ Object
50 51 52 |
# File 'lib/libcfenjin/cfp_liblogger.rb', line 50 def error(level,msg,progname=nil) @cfp_logger.error level,msg,progname end |
#fatal(level, msg, progname = nil) ⇒ Object
54 55 56 57 |
# File 'lib/libcfenjin/cfp_liblogger.rb', line 54 def fatal(level,msg,progname=nil) @cfp_logger.error level,msg,progname raise 'Forcing program exit due to fatal condition' end |
#help(msg, action = 'unknown') ⇒ Object
18 19 20 |
# File 'lib/libcfenjin/cfp_liblogger.rb', line 18 def help(msg,action='unknown') @cfp_logger.help(msg,action) end |
#info(level, msg, progname = nil) ⇒ Object
34 35 36 |
# File 'lib/libcfenjin/cfp_liblogger.rb', line 34 def info(level,msg,progname=nil) @cfp_logger.notify level,msg,progname end |
#status(msg = nil) ⇒ Object
22 23 24 |
# File 'lib/libcfenjin/cfp_liblogger.rb', line 22 def status(msg=nil) @cfp_logger.status(msg) end |
#testing(msg = nil) ⇒ Object
26 27 28 |
# File 'lib/libcfenjin/cfp_liblogger.rb', line 26 def testing(msg=nil) @cfp_logger.testing(msg) end |
#warn(level, msg, progname = nil) ⇒ Object
46 47 48 |
# File 'lib/libcfenjin/cfp_liblogger.rb', line 46 def warn(level,msg,progname=nil) @cfp_logger.warn level,msg,progname end |