Logging in Java Desktop app -


i'm developing java desktop app , wondering best practices logging bugs , exceptions. i'd log exceptions in file that's sent me when there's problem. there frameworks doing or retarded idea? lot

elsanto 696

log4j de facto standard (with standard java logging framework close second).

you should use version 1.2.x production use.

you can configure log4j via code (at runtime) or via configuration file (either java properties or xml format).

from website:

the target of log output can file, outputstream, java.io.writer, remote log4j server, remote unix syslog daemon, or many other output targets.

there smtpappender can configured sending mails log entries on specific conditions, in case email meant "sent me".


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -