/** * Gets the {@link org.apache.uima.util.Logger} used by the UIMA framework. An application won't * generally write to this logger, although nothing is stopping it from doing so. * <p> * In the UIMA SDK, the logger is implemented using the Java 1.4 logger as a back end. If you want * to configure the logger, for example to specify the location of the log file and the logging * level, you should use the standard Java 1.4 logger properties or the java.util.logging APIs. * See the section "Specifying the Logging Configuration" in the Annotator and Analysis Engine * Developer's Guide chapter of the UIMA documentation for more information. * * @return the default Logger used by UIMA components */ public static Logger getLogger() { return getInstance()._getLogger(); }
/** * Gets the {@link org.apache.uima.util.Logger} used by a particular Class, for example an * Annotator. An application won't generally write to this logger, although nothing is stopping it * from doing so. * <p> * In the UIMA SDK, the logger is implemented using the Java 1.4 logger as a back end. If you want * to configure the logger, for example to specify the location of the log file and the logging * level, you should use the standard Java 1.4 logger properties or the java.util.logging APIs. * See the section "Specifying the Logging Configuration" in the Annotator and Analysis Engine * Developer's Guide chapter of the UIMA documentation for more information. * * @param component * the Class for a component, for example an Annotator or CAS Consumer * * @return the Logger used by the specified component class */ public static Logger getLogger(Class<?> component) { return getInstance()._getLogger(component); }