@Override public InternalLogger newInstance(String name) { return new JdkLogger(Logger.getLogger(name)); } }
/** * Log the message at the specified level with the specified throwable if any. * This method creates a LogRecord and fills in caller date before calling * this instance's JDK14 logger. * * See bug report #13 for more details. */ private void log(String callerFQCN, Level level, String msg, Throwable t) { // millis and thread are filled by the constructor LogRecord record = new LogRecord(level, msg); record.setLoggerName(name()); record.setThrown(t); fillCallerData(callerFQCN, record); logger.log(record); }
/** * Log a message object at level FINEST. * * @param msg * - the message object to be logged */ @Override public void trace(String msg) { if (logger.isLoggable(Level.FINEST)) { log(SELF, Level.FINEST, msg, null); } }
/** * Log a message object at level FINE. * * @param msg * - the message object to be logged */ @Override public void debug(String msg) { if (logger.isLoggable(Level.FINE)) { log(SELF, Level.FINE, msg, null); } }
/** * Log the message at the specified level with the specified throwable if any. * This method creates a LogRecord and fills in caller date before calling * this instance's JDK14 logger. * * See bug report #13 for more details. */ private void log(String callerFQCN, Level level, String msg, Throwable t) { // millis and thread are filled by the constructor LogRecord record = new LogRecord(level, msg); record.setLoggerName(name()); record.setThrown(t); fillCallerData(callerFQCN, record); logger.log(record); }
@Override public InternalLogger newInstance(String name) { return new JdkLogger(Logger.getLogger(name)); } }
/** * Log a message object at the SEVERE level. * * @param msg * - the message object to be logged */ @Override public void error(String msg) { if (logger.isLoggable(Level.SEVERE)) { log(SELF, Level.SEVERE, msg, null); } }
/** * Log the message at the specified level with the specified throwable if any. * This method creates a LogRecord and fills in caller date before calling * this instance's JDK14 logger. * * See bug report #13 for more details. */ private void log(String callerFQCN, Level level, String msg, Throwable t) { // millis and thread are filled by the constructor LogRecord record = new LogRecord(level, msg); record.setLoggerName(name()); record.setThrown(t); fillCallerData(callerFQCN, record); logger.log(record); }
@Override public InternalLogger newInstance(String name) { return new JdkLogger(Logger.getLogger(name)); } }
/** * Log a message object at the INFO level. * * @param msg * - the message object to be logged */ @Override public void info(String msg) { if (logger.isLoggable(Level.INFO)) { log(SELF, Level.INFO, msg, null); } }
/** * Log the message at the specified level with the specified throwable if any. * This method creates a LogRecord and fills in caller date before calling * this instance's JDK14 logger. * * See bug report #13 for more details. */ private void log(String callerFQCN, Level level, String msg, Throwable t) { // millis and thread are filled by the constructor LogRecord record = new LogRecord(level, msg); record.setLoggerName(name()); record.setThrown(t); fillCallerData(callerFQCN, record); logger.log(record); }
@Override public InternalLogger newInstance(String name) { return new JdkLogger(Logger.getLogger(name)); } }
/** * Log a message object at the WARNING level. * * @param msg * - the message object to be logged */ @Override public void warn(String msg) { if (logger.isLoggable(Level.WARNING)) { log(SELF, Level.WARNING, msg, null); } }
/** * Log the message at the specified level with the specified throwable if any. * This method creates a LogRecord and fills in caller date before calling * this instance's JDK14 logger. * * See bug report #13 for more details. */ private void log(String callerFQCN, Level level, String msg, Throwable t) { // millis and thread are filled by the constructor LogRecord record = new LogRecord(level, msg); record.setLoggerName(name()); record.setThrown(t); fillCallerData(callerFQCN, record); logger.log(record); }
@Override public InternalLogger newInstance(String name) { return new JdkLogger(Logger.getLogger(name)); } }
/** * Log an exception (throwable) at level FINEST with an accompanying message. * * @param msg * the message accompanying the exception * @param t * the exception (throwable) to log */ @Override public void trace(String msg, Throwable t) { if (logger.isLoggable(Level.FINEST)) { log(SELF, Level.FINEST, msg, t); } }
/** * Log the message at the specified level with the specified throwable if any. * This method creates a LogRecord and fills in caller date before calling * this instance's JDK14 logger. * * See bug report #13 for more details. */ private void log(String callerFQCN, Level level, String msg, Throwable t) { // millis and thread are filled by the constructor LogRecord record = new LogRecord(level, msg); record.setLoggerName(name()); record.setThrown(t); fillCallerData(callerFQCN, record); logger.log(record); }
@Override public InternalLogger newInstance(String name) { return new JdkLogger(Logger.getLogger(name)); } }
/** * Log an exception (throwable) at level FINE with an accompanying message. * * @param msg * the message accompanying the exception * @param t * the exception (throwable) to log */ @Override public void debug(String msg, Throwable t) { if (logger.isLoggable(Level.FINE)) { log(SELF, Level.FINE, msg, t); } }
/** * Log the message at the specified level with the specified throwable if any. * This method creates a LogRecord and fills in caller date before calling * this instance's JDK14 logger. * * See bug report #13 for more details. */ private void log(String callerFQCN, Level level, String msg, Throwable t) { // millis and thread are filled by the constructor LogRecord record = new LogRecord(level, msg); record.setLoggerName(name()); record.setThrown(t); fillCallerData(callerFQCN, record); logger.log(record); }