LogHelpers.logStopped(this.logger, ms0, ms1, fmt, args: _*)
}
- protected def logChainOfCauses(t: Throwable, caughtTraceIndex: Int = 2): Unit = {
- logger.error("Oops!\n{}", chainOfCausesForLogging(t, caughtTraceIndex + 1))
- }
-
protected def logSeparator(): Unit = {
// With this, we should be 120 characters wide (full log line)
logger.debug("================================================")
def logStopped(logger: Logger, ms0: Long, ms1: Long, fmt: String, args: Any*): Unit = {
logger.info("Stopped %s in %.3f sec".format(fmt.format(args: _*), TimeHelpers.secDiffOfMillis(ms0, ms1)))
}
+
+ def logChainOfCauses(logger: Logger, t: Throwable, message: String = "Oops!"): Unit = {
+ logger.error(message + "\n{}", chainOfCausesForLogging(t))
+ }
}
LogHelpers.logStopped(this.logger, ms0, ms1, fmt, args: _*)
}
- protected def logChainOfCauses(t: Throwable): Unit = {
- logger.error("Oops!\n{}", chainOfCausesForLogging(t))
- }
-
protected def logSeparator(): Unit = {
// With this, we should be 120 characters wide (full log line)
logger.debug("================================================")