REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.70 KB
Close
/proc/thread-self/root/opt/alt/ruby18/share/ri/1.8/system/Logger/Application/cdesc-Application.yaml
Text
Base64
--- !ruby/object:RI::ClassDescription attributes: - !ruby/object:RI::Attribute comment: name: appname rw: R - !ruby/object:RI::Attribute comment: name: logdev rw: R class_methods: - !ruby/object:RI::MethodSummary name: new comment: - !ruby/struct:SM::Flow::H level: 2 text: Description - !ruby/struct:SM::Flow::P body: Application -- Add logging support to your application. - !ruby/struct:SM::Flow::H level: 2 text: Usage - !ruby/object:SM::Flow::LIST contents: - !ruby/struct:SM::Flow::LI label: "1." body: Define your application class as a sub-class of this class. - !ruby/struct:SM::Flow::LI label: "2." body: Override 'run' method in your class to do many things. - !ruby/struct:SM::Flow::LI label: "3." body: Instantiate it and invoke 'start'. type: :NUMBER - !ruby/struct:SM::Flow::H level: 2 text: Example - !ruby/struct:SM::Flow::VERB body: " class FooApp < Application\n def initialize(foo_app, application_specific, arguments)\n super('FooApp') # Name of the application.\n end\n\n def run\n ...\n log(WARN, 'warning', 'my_method1')\n ...\n @log.error('my_method2') { 'Error!' }\n ...\n end\n end\n\n status = FooApp.new(....).start\n" constants: [] full_name: Logger::Application includes: - !ruby/object:RI::IncludedModule name: Logger::Severity instance_methods: - !ruby/object:RI::MethodSummary name: level= - !ruby/object:RI::MethodSummary name: log - !ruby/object:RI::MethodSummary name: log= - !ruby/object:RI::MethodSummary name: run - !ruby/object:RI::MethodSummary name: set_log - !ruby/object:RI::MethodSummary name: start name: Application superclass: Object
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 8
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
cdesc-Application.yaml
1.70 KB
lrw-r--r--
2023-07-26 13:47:07
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
level%3d-i.yaml
281 B
lrw-r--r--
2023-07-26 13:47:07
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
log%3d-i.yaml
181 B
lrw-r--r--
2023-07-26 13:47:07
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
log-i.yaml
301 B
lrw-r--r--
2023-07-26 13:47:07
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
new-c.yaml
711 B
lrw-r--r--
2023-07-26 13:47:07
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
run-i.yaml
174 B
lrw-r--r--
2023-07-26 13:47:07
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
set_log-i.yaml
360 B
lrw-r--r--
2023-07-26 13:47:07
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
start-i.yaml
260 B
lrw-r--r--
2023-07-26 13:47:07
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).