Last change
on this file since 7e0809a was b51b715, checked in by njw <njw@…>, 16 years ago |
changed sheebang
|
-
Property mode
set to
100644
|
File size:
724 bytes
|
Line | |
---|
1 | #!/usr/bin/env ruby
|
---|
2 | #
|
---|
3 | # Author: Norbert Wigbels - foobla.wigbels.de/uber-foobla
|
---|
4 | #
|
---|
5 | # Info about...
|
---|
6 |
|
---|
7 |
|
---|
8 | #------------------------------------------
|
---|
9 | # Tainted mode 0-4
|
---|
10 | $SAFE=0
|
---|
11 |
|
---|
12 |
|
---|
13 | #------------------------------------------
|
---|
14 | require 'logger'
|
---|
15 |
|
---|
16 |
|
---|
17 | #------------------------------------------
|
---|
18 | class FooApp < Logger::Application
|
---|
19 | def initialize(application_name)
|
---|
20 | super(application_name) # Name of the application.
|
---|
21 | end
|
---|
22 |
|
---|
23 | def run
|
---|
24 | puts "Filename: "+__FILE__.to_s
|
---|
25 | puts "Linenumber: "+__LINE__.to_s
|
---|
26 | #log(WARN, 'warning', 'mymethod' )
|
---|
27 | #@log.error('my_method2') { 'Error!' }
|
---|
28 | end
|
---|
29 |
|
---|
30 | end
|
---|
31 |
|
---|
32 |
|
---|
33 | #------------------------------------------
|
---|
34 | status = FooApp.new("FooApp").start
|
---|
35 |
|
---|
36 | #if status != 0
|
---|
37 | # puts "Some error occured."
|
---|
38 | #end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.