ops.log: feedback requested

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

ops.log: feedback requested

Erik Bruchez
Administrator
All,

Recently, we changed log4j.xml to have this definition by default:

   <appender-ref ref="SingleFileAppender"/>

with the appender pointing to:

   <param name="File" value="../logs/ops.log"/>

This works great when:

* You use Tomcat
* You start Tomcat from its bin directory

The benefit is that you get a log file in the right place.

The drawback is that if you are not in the above situation, you get an
exception during startup. This is not fatal, but it's not pretty either.

Can anybody see a better solution? Should be simply revert back to not
enabling the SingleFileAppender by default?

See also the bug entry:

http://forge.objectweb.org/tracker/index.php?func=detail&aid=307092&group_id=168&atid=350207

-Erik

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: ops.log: feedback requested

Ryan Puddephatt
Erik,
    Personally I don't use the file appender locally, instead I use the OPSMonitor, because I can easily filter the results etc. However we do use the SingleFileAppender on some of our Unix Development environments, but only when we don't have access to the OPSMonitor and we then use full directory paths because we have a lot of log files.

Because we use our own log4j.xml it makes no difference about the default, this is just my 2c.

Ryan

Ryan Puddephatt
Software Engineer
 
Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP
 
e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108
w> www.teleflex.com

"Measuring programming progress by lines of code is like measuring aircraft building progress by weight." - Bill Gates
"If you lie to the compiler, it will get its revenge." - Henry Spencer
"It's hard enough to find an error in your code when you're looking for it; it's even harder when you've assumed your code is error-free." - Steve McConnell
"If builders built buildings the way programmers wrote programs, then the first woodpecker that came along would destroy civilization." - Gerald Weinberg



Erik Bruchez wrote:
All,

Recently, we changed log4j.xml to have this definition by default:

  <appender-ref ref="SingleFileAppender"/>

with the appender pointing to:

  <param name="File" value="../logs/ops.log"/>

This works great when:

* You use Tomcat
* You start Tomcat from its bin directory

The benefit is that you get a log file in the right place.

The drawback is that if you are not in the above situation, you get an exception during startup. This is not fatal, but it's not pretty either.

Can anybody see a better solution? Should be simply revert back to not enabling the SingleFileAppender by default?

See also the bug entry:

http://forge.objectweb.org/tracker/index.php?func=detail&aid=307092&group_id=168&atid=350207

-Erik


-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: [hidden email] For general help: [hidden email] ObjectWeb mailing lists service home page: http://www.objectweb.org/wws


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws