Module: LoggingModule
- Included in:
- ConfigModule::TakeltauConfig, ProjectModule::TakeltauProject, Takeltau::CLI, Takeltau::Completion, Takeltau::Docker, Takeltau::DockerCheck, Takeltau::DockerContainer, Takeltau::DockerContainerCheck, Takeltau::DockerImage, Takeltau::DockerImageTag, Takeltau::GitCheck, Takeltau::Hg, Takeltau::InfoProject, Takeltau::InfoStatus, Takeltau::InitPacker, Takeltau::InitTakelage, Takeltau::Mutagen, Takeltau::MutagenCheck, Takeltau::MutagenSocket, Takeltau::Self, Takeltau::SelfConfig, Takeltau::Ship, Takeltau::ShipCompletion, Takeltau::ShipContainer, Takeltau::ShipContainerCheck, Takeltau::ShipInfo, Takeltau::ShipPorts, Takeltau::ShipProject
- Defined in:
- lib/takeltau/lib/logging.rb
Overview
tau logging module
Defined Under Namespace
Classes: TakeltauLogger
Instance Method Summary collapse
-
#initialize_logging(loglevel, debug) ⇒ Object
Initialize logger with loglevel.
-
#log ⇒ Object
Global singleton logger.
Instance Method Details
#initialize_logging(loglevel, debug) ⇒ Object
Initialize logger with loglevel.
17 18 19 20 21 22 23 |
# File 'lib/takeltau/lib/logging.rb', line 17 def initialize_logging(loglevel, debug) TakeltauLogger.instance.logger.formatter = _logging_get_log_format loglevel = 'DEBUG' if debug log_level_in_use = _logging_get_log_level loglevel TakeltauLogger.instance.logger.level = log_level_in_use TakeltauLogger.instance.logger.debug "Using loglevel #{log_level_in_use}" end |
#log ⇒ Object
Returns global singleton logger.
26 27 28 |
# File 'lib/takeltau/lib/logging.rb', line 26 def log TakeltauLogger.instance.logger end |