class
v1_8_7_72 -
Show latest stable
-
0 notes
- Superclass:
Object
- 1_8_6_287 (0)
- 1_8_7_72 (0)
- 1_8_7_330 (0)
- 1_9_1_378 (-3)
- 1_9_2_180 (0)
- 1_9_3_125 (0)
- 1_9_3_392 (0)
- 2_1_10 (1)
- 2_2_9
- 2_4_6
- 2_5_5
- 2_6_3
- What's this?
Description
Application — Add logging support to your application.
Usage
- Define your application class as a sub-class of this class.
- Override ‘run’ method in your class to do many things.
- Instantiate it and invoke ‘start’.
Example
class FooApp < Application def initialize(foo_app, application_specific, arguments) super('FooApp') # Name of the application. end def run ... log(WARN, 'warning', 'my_method1') ... @log.error('my_method2') { 'Error!' } ... end end status = FooApp.new(....).start