Search in sources :

Example 1 with LogStreamAsync

use of org.apache.openejb.util.LogStreamAsync in project tomee by apache.

the class LoggingJAXRSCommons method getLooger.

protected java.util.logging.Logger getLooger() throws Exception {
    final Logger logger = Logger.getInstance(LogCategory.OPENEJB_RS, RESTService.class);
    final LogStreamAsync stream = LogStreamAsync.class.cast(Reflections.get(logger, "logStream"));
    final JuliLogStream ls = JuliLogStream.class.cast(Reflections.get(stream, "ls"));
    final LoggerCreator julCreator = LoggerCreator.class.cast(Reflections.get(ls, "logger"));
    return julCreator.call();
}
Also used : LoggerCreator(org.apache.openejb.log.LoggerCreator) JuliLogStream(org.apache.openejb.util.JuliLogStream) Logger(org.apache.openejb.util.Logger) LogStreamAsync(org.apache.openejb.util.LogStreamAsync)

Aggregations

LoggerCreator (org.apache.openejb.log.LoggerCreator)1 JuliLogStream (org.apache.openejb.util.JuliLogStream)1 LogStreamAsync (org.apache.openejb.util.LogStreamAsync)1 Logger (org.apache.openejb.util.Logger)1