object LoggerUtil
- Alphabetic
- By Inheritance
- LoggerUtil
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def clue[T](message: => String)(run: => T)(implicit loggingContext: ErrorLoggingContext): T
Log the time taken by a task
run
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def logAtLevel(level: Level, message: => String)(implicit loggingContext: ErrorLoggingContext): Unit
Log a
message
at a givenlevel
.Log a
message
at a givenlevel
.- message
The message to be logged. Call-by-name so that the message is computed only if the message is really logged.
- def logOnThrow[T](task: => T)(implicit loggingContext: ErrorLoggingContext): T
- def logOnThrow_(task: => Unit)(implicit loggingContext: ErrorLoggingContext): Unit
- def logThrowableAtLevel(level: Level, message: => String, throwable: => Throwable)(implicit loggingContext: ErrorLoggingContext): Unit
Log a
message
with athrowable
at a givenlevel
. - final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def roundDurationForHumans(duration: Duration, keep: Int = 2): Duration
Round a duration such that humans can easier graps the numbers
Round a duration such that humans can easier graps the numbers
Duration offers a method .toCoarsest that will figure out the coarsest time unit. However, this method doesn't really do anything if we have nanoseconds as it only truncates 0.
Therefore, this method allows to set lower digits to 0 and only keep the leading digits as nonzeros.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def truncateString(maxLines: Int, maxSize: Int)(str: String): String
truncates a string
truncates a string
- maxLines
truncate after observing the given number of newline characters
- maxSize
truncate after observing the given number of characters
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])