/** * @return same as {@code canExitEarly(false)} */ private boolean canExitEarly() { return canExitEarly(false); }
/** * @return same as {@code canExitEarly(false)} */ private boolean canExitEarly() { return canExitEarly(false); }
/** * @return same as {@code canExitEarly(false)} */ private boolean canExitEarly() { return canExitEarly(false); }
/** * Returns quickly if log level is not DEBUG or TRACE - if it is DEBUG, then * just returns the current time in millis, if it is TRACE, then log the * given message and also return the current time in millis. * * @param traceMsgOrNull * the message to log if log level is TRACE - or null if no * message should be logged (even on TRACE level) * @return the current time if level is DEBUG or TRACE, -1 otherwise */ private long start(String traceMsgOrNull, boolean logAtInfoToo) { if (canExitEarly(logAtInfoToo)) { return -1; } if (traceMsgOrNull != null && delegate.isTraceEnabled()) { delegate.trace(traceMsgOrNull); } return System.nanoTime(); }
/** * Shortcut to {@code start(traceMsgOrNull, false)} */ public final long start(String traceMsgOrNull) { if (canExitEarly()) { return -1; } return start(traceMsgOrNull, false); }
/** * Shortcut to {@code start(traceMsgOrNull, false)} */ public final long start(String traceMsgOrNull) { if (canExitEarly()) { return -1; } return start(traceMsgOrNull, false); }
/** * Returns quickly if log level is not DEBUG or TRACE - if it is DEBUG, then * just returns the current time in millis, if it is TRACE, then log the * given message and also return the current time in millis. * * @param traceMsgOrNull * the message to log if log level is TRACE - or null if no * message should be logged (even on TRACE level) * @return the current time if level is DEBUG or TRACE, -1 otherwise */ private long start(String traceMsgOrNull, boolean logAtInfoToo) { if (canExitEarly(logAtInfoToo)) { return -1; } if (traceMsgOrNull != null && delegate.isTraceEnabled()) { delegate.trace(traceMsgOrNull); } return System.nanoTime(); }
/** * Returns quickly if log level is not DEBUG or TRACE - if it is DEBUG, then * just returns the current time in millis, if it is TRACE, then log the * given message and also return the current time in millis. * * @param traceMsgOrNull * the message to log if log level is TRACE - or null if no * message should be logged (even on TRACE level) * @return the current time if level is DEBUG or TRACE, -1 otherwise */ private long start(String traceMsgOrNull, boolean logAtInfoToo) { if (canExitEarly(logAtInfoToo)) { return -1; } if (traceMsgOrNull != null && delegate.isTraceEnabled()) { delegate.trace(traceMsgOrNull); } return System.nanoTime(); }
/** * Shortcut to {@code start(null, true)} */ public final long startForInfoLog() { if (canExitEarly(true)) { return -1; } return start(null, true); }
/** * Shortcut to {@code start(traceMsgOrNull, true)} */ public final long startForInfoLog(String traceMsgOrNull) { if (canExitEarly(true)) { return -1; } return start(traceMsgOrNull, true); }
/** * Shortcut to {@code #start(null, false)} */ public final long start() { if (canExitEarly()) { return -1; } return start(null, false); }
/** * Shortcut to {@code start(traceMsgOrNull, true)} */ public final long startForInfoLog(String traceMsgOrNull) { if (canExitEarly(true)) { return -1; } return start(traceMsgOrNull, true); }
/** * Shortcut to {@code start(null, true)} */ public final long startForInfoLog() { if (canExitEarly(true)) { return -1; } return start(null, true); }
/** * Shortcut to {@code #start(null, false)} */ public final long start() { if (canExitEarly()) { return -1; } return start(null, false); }
/** * Shortcut to {@code start(traceMsgOrNull, false)} */ public final long start(String traceMsgOrNull) { if (canExitEarly()) { return -1; } return start(traceMsgOrNull, false); }
/** * Shortcut to {@code #start(null, false)} */ public final long start() { if (canExitEarly()) { return -1; } return start(null, false); }
/** * Shortcut to {@code start(traceMsgOrNull, true)} */ public final long startForInfoLog(String traceMsgOrNull) { if (canExitEarly(true)) { return -1; } return start(traceMsgOrNull, true); }
/** * Shortcut to {@code start(null, true)} */ public final long startForInfoLog() { if (canExitEarly(true)) { return -1; } return start(null, true); }