Object
This NodeLogger implementation is backed by the Ruby stdlib logger class, and uses a separate logger instance for trace logging in order to physically segregate messages at the trace level.
The logger uses the following config keys:
PLATFORM_LOG_FILE - The absolute path to the primary log file (default: /var/log/openshift/node/platform.log) PLATFORM_LOG_LEVEL - The log level for the primary logger (default: DEBUG) PLATFORM_TRACE_LOG_FILE - The absolute path to the trace log file (default: /var/log/openshift/node/platform-trace.log) PLATFORM_TRACE_LOG_LEVEL - The log level for the trace logger (default: INFO)
Note: File IO for the underlying loggers is synchronous.
# File lib/openshift-origin-node/utils/logger/split_trace_logger.rb, line 72 def debug(*args, &block) @logger.info(*args, &block) end
# File lib/openshift-origin-node/utils/logger/split_trace_logger.rb, line 80 def error(*args, &block) @logger.error(*args, &block) end
# File lib/openshift-origin-node/utils/logger/split_trace_logger.rb, line 84 def fatal(*args, &block) @logger.fatal(*args, &block) end
# File lib/openshift-origin-node/utils/logger/split_trace_logger.rb, line 68 def info(*args, &block) @logger.info(*args, &block) end
# File lib/openshift-origin-node/utils/logger/split_trace_logger.rb, line 63 def reinitialize @logger = build_logger(@profiles[:standard]) @trace_logger = build_logger(@profiles[:trace]) end
Generated with the Darkfish Rdoc Generator 2.