QueryCAT Logo
Search 5,000,000+ questions and answers.

Frequently Asked Questions

How do you remove log4j for logging?

Frequently Asked Questions (List likely to grow with time)
Because log4j is configured by default to log to a file, you may want to remove it from the implementaton. Doing this is quite simple - modify gov.nist.core.LogWriter.java. You can change its behavior to log to a network connection or remove it entirely and convert to println. The Listener may have blocked while processing a transaction. Do not block in your listener method. If you need to block, start a thread and block in it dont block in the thread that you were called in the listener.

Is log4net a reliable logging system?

log4net - Frequently Asked Questions
By fail-stop, we mean that log4net will not throw unexpected exceptions at run-time potentially causing your application to crash. If for any reason, log4net throws an uncaught exception, please send an email to the log4net-users@lists.sourceforge.net mailing list. Uncaught exceptions are handled as serious bugs requiring immediate attention. Moreover, log4net will not revert to System.Console.Out or System.Console.

How can I let MINA log messages using my favorite logging framework (i.e. Log4J)?

Apache MINA - FAQ
We recommend to switch the default buffer type to 'heap' by inserting the following code before you start a server: If you prefer direct buffers to heap buffers, JVM might have ran out of direct memory. Please try increasing maximum direct memory size using -XX:MaxDirectMemorySize option (e.g. -XX:MaxDirectMemorySize=128M) Please make sure if you called ByteBuffer.flip() to flip the buffer before writing the buffer out. It is a common mistake NIO beginners make.

top]Why should I use log4j when JDK 1.4 already ships with a logging API?

Apache log4j 1.2 - Frequently Asked Technical Questions
Although both APIs are conceptually similar, the log4j API is significantly more flexible and offers many more features, too numerous to be listed here. You will discover that the additional features and flexibility turn out to be indispensable in the context of a mission-critical application. The open and collaborative way in which log4j is developped ensures that it continues to preserve and even widen its competitive edge.

How reliable is it?

The Inca Trail FAQ
Probably not very. It's based on my memories from a single trip along the Inca Trail fourteen years ago. This scarcely makes me an authority on the subject, so this is not in any way an 'official' or authoritative FAQ. It's simply a list of the questions that people have asked me, together with the answers that I've given them. I have tried to ensure that the answers are correct and complete but if in doubt you should confirm anything important by referring to other sources.

Can I use Log::Log4perl with log4j's Chainsaw?

Log::Log4perl::FAQ - Frequently Asked Questions on Log::Log4...
Get Guido Carls' <gcarls@cpan.org> Log::Log4perl extension Log::Log4perl::Layout::XMLLayout from CPAN and install it: perl -MCPAN -eshell cpan> install Log::Log4perl::Layout::XMLLayout Install and start Chainsaw, which is part of the log4j distribution now (see http://jakarta.apache.org/log4j ). Create a configuration file like <log4j:configuration debug="true"> <plugin name="XMLSocketReceiver" class="org.apache.log4j.net.

Where can I get reliable information?

Avian Influenza (Bird Flu) - The Ohio State University
This website will be kept up to date with OSU-specific information as well as links to key public health organizations, including the Columbus Health Department, the U.S. Centers for Disease Control and Prevention, and the World Health Organization.

Where are you logging in from?

MagnatechOnline Home - Support - FAQ
If you are already logged into a PC and are trying to log into the server using Facetwin / Dejawin / Anzio or any other terminal emulator, click here for more help tips.

Why are you logging me anyway?

MobiTip FAQ
MobiTip is a platform for exploring and testing our reseach hypotheses about mobile services as a whole, about distributed recommender systems, about social computation etc. The reason for building this prototypical mobile service is to test these ideas on real people and see how a service of this kind is taken into use. Logging data is anonymous and contains no information of your real name or email address.

top]What are the prerequisites for log4j?

Apache log4j 1.2 - Frequently Asked Technical Questions
Log4j versions upto and including 1.2.8 are compatible with JDK 1.1.x and later. Log4j version 1.3 will be compatilble with JDK 1.2 and later. The DOMConfigurator is based on the DOM Level 1 API. The DOMConfigurator.configure(Element) method will work with any XML parser that will pass it a DOM tree. The DOMConfigurator.configure(String filename) method and its variants require a JAXP compatible XML parser, for example Xerces or Sun's parser.

top]What are the features of log4j?

Apache log4j 1.2 - Frequently Asked Technical Questions
log4j is fail-stop. However, altough it certainly strives to ensure delivery, log4j does not guarantee that each log statement will be delivered to its destination. Logging behavior can be set at runtime using a configuration file. Configuration files can be property files or in XML format. log4j can direct its output to a file, the console, an java.io.OutputStream, java.io.
More Questions >>

© Copyright 2007-2012 QueryCAT
About • Webmasters • Contact