I’ve been experimenting with code to try to duplicate this problem…
here’s another problem I’ve found that may have the same root cause:
I recently added some activerecord code to a stand-alone application
uses Log4R. I’m getting some weird conflicts.
The code below demonstrates one of the problems I see… if you remove
line : “require_gem ‘activerecord’” the code executes fine. If you have
in the code you will get the following error:
outputters=': undefined methodclear’ for nil:NilClass (NoMethodError)
Here is the code:
create a logger named ‘mylog’ that logs to stdout
mylog = Logger.new ‘mylog’
mylog.outputters = Outputter.stdout
Now we can log.
log.debug “This is a message with level DEBUG”
log.info “This is a message with level INFO”
log.warn “This is a message with level WARN”
log.error “This is a message with level ERROR”
log.fatal “This is a message with level FATAL”
mylog.level = ERROR
Any insight on what’s going on here?