Class: Adhearsion::Logging::AdhearsionLogger
- Inherits:
-
Log4r::Logger
- Object
- Log4r::Logger
- Adhearsion::Logging::AdhearsionLogger
show all
- Defined in:
- lib/adhearsion/logging.rb
Constant Summary
collapse
- @@outputters =
[Log4r::Outputter.stdout]
Class Method Summary
collapse
Instance Method Summary
collapse
Constructor Details
Returns a new instance of AdhearsionLogger.
49
50
51
52
|
# File 'lib/adhearsion/logging.rb', line 49
def initialize(*args)
super
redefine_outputters
end
|
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(logger_name, *args, &block) ⇒ Object
58
59
60
61
|
# File 'lib/adhearsion/logging.rb', line 58
def method_missing(logger_name, *args, &block)
define_logging_method(logger_name, self.class.new(logger_name.to_s))
send(logger_name, *args, &block)
end
|
Class Method Details
.outputters ⇒ Object
40
41
42
|
# File 'lib/adhearsion/logging.rb', line 40
def outputters
@@outputters
end
|
.outputters=(other) ⇒ Object
44
45
46
|
# File 'lib/adhearsion/logging.rb', line 44
def outputters=(other)
@@outputters = other
end
|
Instance Method Details
#redefine_outputters ⇒ Object
54
55
56
|
# File 'lib/adhearsion/logging.rb', line 54
def redefine_outputters
self.outputters = @@outputters
end
|