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

Frequently Asked Questions

How do I use Jakarta Commons Logging and Simple Logging Facade for Java API?

x4juli - Extensions for the java.util.logging implementation
This is an x4juli FAQ. Please have a look at the project pages for their documentation regarding usage in user code.

Implementing the SLF4J API How do I make my logging framework SLF4J compatible?

SLF4J FAQ
Adding supporting for the SLF4J is suprisingly easy. Essentialy, you coping an existing binding and tailoring it a little (as explained below) does the trick. Assuming your logging system has notion of a logger, called say MyLogger, you need to provide an adapter for MyLogger to org.slf4j.Logger interface. Refer to slf4j-jcl, slf4j-jdk14, and slf4j-log4j12 modules for examples of adapters.

I am familiar with Jakarta Commons Logging and/or slf4j. How is the relationship?

x4juli - Extensions for the java.util.logging implementation
x4juli provides a native implementation for org.apache.commons.logging.Log interface and for the org.slf4j.Logger interface. x4juli uses the standard way of each facade to implement the corresponding factory. In case of Jakarta Commons Logging you still have to use the originally provided jar and put an config entry in the right place (System property or config.file). In case of slf4j you have to do nothing but remove all other sl4fj-xxxxx.jar files from the classpath.

How do I configure Simple Logging Facade for Java (slf4j) to natively use x4juli ?

x4juli - Extensions for the java.util.logging implementation
x4juli delivers all necessary classes as specified on http://slf4j.org/faq.html section "Implementing the SLF4J API". You simply have to remove all sl4fj-xxxxx.jar from the classpath.

top] Is SLF4J yet another logging facade?

SLF4J FAQ
SLF4J is conceptually similar to JCL. As such, it can be thought of as yet another logging facade. However, SLF4J is orders of magnitude simpler in design and arguably more robust.

How do I configure Jakarta Commons Logging to natively use x4juli ?

x4juli - Extensions for the java.util.logging implementation
Second part: You have to make Jakarta Commons Logging use the x4juli JCLFactory. There are two possibilities: Specify a system property on your jvm startup (script): -Dorg.apache.commons.logging.LogFactory=org.x4juli.JCLFactory or put in an commons-logging.properties file in your classpath with org.apache.commons.logging.LogFactory=org.x4juli.JCLFactory property line in the file.

Can I use Coverlipse on a project that uses Java Commons Logging?

Coverlipse FAQ
Long answer: Java Commons Logging introduces a classloader hell that is discussed to some extend by the author of Log4J here and here. Thus, Coverlipse adds the Java Commons Logging package to those handled by the system classloader. This way, projects that use Java Commons Logging can be tested with Coverlipse. However, it is not possible to test the Java Commons Logging itself with coverage by Coverlipse. Again, this is a problem occurring only with Eclipse 3.0.

How can I use the Fotolia API?

Fotolia.com - FAQ: Frequently Asked Questions
The Fotolia API is a tool that allows a website to make requests to the Fotolia database and receive results with images. Thus, your website visitors can search images on your website without leaving it, and they will become your affiliates if they register on Fotolia. In addition the Fotolia API can be used to integrate our services in your product (search and purchase functions) or to build applications using Fotolia (plugin, add-on software, web service, widget etc).

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.

edit] If I start my own commons wiki, how do I set it up, so that my other wikis can use its media?

MediaWiki FAQ - Meta
Have a look at mw:Help:Configuration settings#Shared_uploads or Help:Wiki family for detailed information --Produnis 09:50, 16 April 2006 (UTC)

How do I use the API?

OpenChecklist - FAQ
To use the OpenChecklist API, you must be a registered user of OpenChecklist and also apply for an API key that must be submitted with all requests.

Are there API's I can use?

Process Plus - Frequently Asked Questions
There are many API's and integration options to allow for customized integration and enterprise software needs. Guides are available for download and review.

Why use Log::Log4perl instead of any other logging module on CPAN?

Log::Log4perl::FAQ - Frequently Asked Questions on Log::Log4...
That's a good question. There's dozens of logging modules on CPAN. When it comes to logging, people typically think: ''Aha. Writing out debug and error messages. Debug is lower than error. Easy. I'm gonna write my own.'' Writing a logging module is like a rite of passage for every Perl programmer, just like writing your own templating system. Of course, after getting the basics right, features need to be added. You'd like to write a timestamp with every message.

Can I use JAR files with J#?

Computer Science Teacher - Thoughts and Information from Alf...
The Visual J# Binary Converter Tool (JbImp.exe) converts certain Java-language bytecode (.class) files to Microsoft? intermediate language (MSIL). This tool enables developers to convert most JDK 1.1.4 level libraries and applications available only as bytecode files to MSIL assemblies, and run them on Visual J#. Use this tool only if the Java-language sources for the applications or libraries are not available.

Generalities What is SLF4J?

SLF4J FAQ
SLF4J is a simple facade for logging systems allowing the end-user to plug-in the desired logging system at deployment time.

top] When should SLF4J be used?

SLF4J FAQ
In short, libraries and other embedded components should consider SLF4J for their logging needs because libraries cannot afford to impose their choice of logging system on the end-user. On the other hand, it does not necessarily make sense for stand-alone applications to use SLF4J. Stand-alone applications can invoke the logging system of their choice directly. SLF4J is only a facade, meaning that it does not provide a complete logging solution.

Can I rely on you?

Abacus Bouncy Castles : Your Questios Answered
Yes. We have kids and wouldn't want them let down and so we won't let yours down. Our reputation is what keeps us in business.

Can I use the source code distributed in the Google SOAP Search API developer's kit?

Google SOAP Search API
The developer's kit includes some example Google client Java code, a .NET programming example, and a WSDL file you can use to generate code if your environment supports it. The developer's kit contains some third-party libraries; your use of these libraries is subject to their terms and conditions. Google has included the licenses for these libraries in the developer's kit download package.

How do I use the java.util.logging API?

x4juli - Extensions for the java.util.logging implementation
First the actual logger is obtained and hold as static reference. The naming convention (as in most logging systems) is to use the full qualified class name for the logger. The first log method (LOG.entering ....) is a utiliy method of an logger to log information when entering a new method. Use this with care and just where needed, because your log will be useless if flooded with this information. A good point to log the flow is the business facade of an application. The second log method (LOG.

Do all languages use the same API?

Frequently Asked Questions
Yes, for the most part. There are small differences due to the capabilities of the language. So for example, some languages support exceptions, multiple overloads and intrinsic strings and some don't. But in any language, applications can perform telephony, media streaming and recording, text-to-speech and speech recognition operations. Yes, you read that correctly - you can do speech recognition even in Visual Basic or a scripting language like Perl, Python or Ruby.
More Questions >>

© Copyright 2007-2012 QueryCAT
About • Webmasters • Contact