Olivia D. wrote:
I want to use log4r to generate xml formatted log file, but I’m not
familiar with it and thus have no idea how to do.
I’ve not done this either, but done quite a bit of ‘log4j’: seems the
two packages are (superficially) similar, but there doesn’t appear to be
a default XML appender (formatter I think in log4r?), but looks like the
API is flexible enough to let you produce your own XML:
p = PatternFormatter.new(:pattern => “[%l] %d :: %.15m”)
You wanted your individual methods in there: not sure you can do that or
What the Directive Letters mean
Maybe this directive is close enough? (dunno)
Produces the file and line number of the log event. The appearance
varies by Ruby version, but it is the same output returned by
I know on ‘log4j’ it is NOT recommended to output Method calls : really
grinds the program to almost halt.
Maybe this help, dunno,