Packages

object LoggingHelper extends LoggingHelper

Log File Related Helpers

This object just provides a variety of utilities for manipulating LogBack programatically.

Linear Supertypes
LoggingHelper, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LoggingHelper
  2. LoggingHelper
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. implicit class ScalaLoggerExtension extends AnyRef

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val FILE_APPENDER_NAME: String
  5. val PAGE_APPENDER_NAME: String
  6. val STDOUT_APPENDER_NAME: String
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def configureLogger(logger: Logger): Unit

    Set the logger's level per requested patterns

  10. def convertRecentEventsToHtml(): String
  11. def createLoggerName: String
    Attributes
    protected
    Definition Classes
    LoggingHelper
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def findLogger(name: String): Option[Logger]
  16. def findLoggers(pattern: String): Seq[Logger]

    Find loggers matching a pattern

    Find loggers matching a pattern

    pattern

    A Scala regular expression string for the names of the loggers to match

    returns

    A sequence of the matching loggers

  17. def forgetLoggingLevels(): Unit

    Clear the remembered patterns Patterns set with the forFuture flag set to true are remembers for subsequent loggers.

    Clear the remembered patterns Patterns set with the forFuture flag set to true are remembers for subsequent loggers. This call causes all such remembered patterns to be forgotten. No existing loggers are affected.

  18. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  19. def getLoggingConfig: List[(String, String)]
  20. def getLoggingLevel(name: String): Level
  21. def getLoggingTableData: (Iterable[String], Iterable[Iterable[String]])
  22. def hasAppenders(logger: Logger): Boolean

    Determine if a logger has an appender or not

    Determine if a logger has an appender or not

    logger

    The logger to check

    returns

    true iff the logger has an appender

  23. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. def level: Level
    Definition Classes
    LoggingHelper
  26. val levelPatterns: Map[Regex, Level]
  27. lazy val log: Logger
    Attributes
    protected
    Definition Classes
    LoggingHelper
  28. def loggerName: String
    Definition Classes
    LoggingHelper
  29. def makeRollingFileAppender(file: File, maxFiles: Int, maxFileSizeInMB: Int, immediateFlush: Boolean, name: String): RollingFileAppender[ILoggingEvent]
  30. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  31. final def notify(): Unit
    Definition Classes
    AnyRef
  32. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  33. val nullValue: Null
  34. var pageAppender: Option[CyclicBufferAppender[ILoggingEvent]]
  35. def removeAppender(name: String): Unit
  36. val rootLogger: Logger

    Easy access to the root logger

  37. def rootLoggerContext: Option[LoggerContext]

    Easy access to the logger context

  38. def setFileAppender(file: File, maxFiles: Int, maxFileSizeInMB: Int, immediateFlush: Boolean, name: String = FILE_APPENDER_NAME): Option[FileAppender[_]]
  39. def setLoggingLevel(regex: String, level: Level, forFuture: Boolean = false): Seq[String]

    Set Logging Level Generically.

    Set Logging Level Generically. This function sets the logging level for any pkg that matches a regular expression. This allows a variety of loggers to be set without knowing their full names explicitly.

    regex

    A Scala regular expression string for the names of the loggers to match

    level

    The level you want any matching loggers to be set to.

    forFuture

    When true, the regex is saved and applied to future instantiations of loggers, too.

    returns

    A list of the names of the loggers whose levels were set

  40. def setPageAppender(maxSize: Int, name: String = PAGE_APPENDER_NAME): Unit
  41. def setStdOutAppender(name: String = STDOUT_APPENDER_NAME): Try[ConsoleAppender[ILoggingEvent]]
  42. def setToDebug(pkg: String): Seq[String]
  43. def setToDebug(component: LoggingHelper): Seq[String]

    Set a component to WARN logging level

  44. def setToError(pkg: String): Seq[String]
  45. def setToError(component: LoggingHelper): Seq[String]

    Set a component to ERROR logging level

  46. def setToInfo(pkg: String): Seq[String]
  47. def setToInfo(component: LoggingHelper): Seq[String]

    Set a component to WARN logging level

  48. def setToTrace(pkg: String): Seq[String]
  49. def setToTrace(component: LoggingHelper): Seq[String]

    Set a component to WARN logging level

  50. def setToWarn(pkg: String): Seq[String]
  51. def setToWarn(component: LoggingHelper): Seq[String]

    Set a component to WARN logging level

  52. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  53. def toString(): String
    Definition Classes
    AnyRef → Any
  54. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  55. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  56. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  57. def waitForRootLoggerContext(attempts: Long = 40L, sleepTime: FiniteDuration = 50.milliseconds)(implicit ec: ExecutionContext): Future[LoggerContext]

Inherited from LoggingHelper

Inherited from AnyRef

Inherited from Any

Ungrouped