Slf4jLogger

com.phasmidsoftware.flog.Slf4jLogger
case class Slf4jLogger(logger: Logger) extends Logger

Class to create a Logger based on Slf4j (simple logging facade for Java).

Value parameters

logger

an instance of org.slf4j.Logger.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Logger
trait Flushable
trait AutoCloseable
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

Provides a debug-level logging function.

Provides a debug-level logging function.

Attributes

Returns

a LogFunction that logs messages at the debug level if debugging is enabled.

override def error: (String, Throwable) => Unit

Logs an error message and an associated throwable if error-level logging is enabled. Falls back to the super implementation if error-level logging is not enabled in the underlying logger.

Logs an error message and an associated throwable if error-level logging is enabled. Falls back to the super implementation if error-level logging is not enabled in the underlying logger.

Attributes

Returns

a function that takes a message of type String and a Throwable, and logs them at the error level.

Definition Classes

Provides a logging function for messages at the "info" level. The function logs the provided message if the logger's info level is enabled.

Provides a logging function for messages at the "info" level. The function logs the provided message if the logger's info level is enabled.

Attributes

Returns

a LogFunction that can log messages conditionally based on the info logging level.

override def toString: String

Provides a string representation of the object.

Provides a string representation of the object.

Attributes

Returns

A string identifying the object as "<org.slf4j.Logger>".

Definition Classes
Any

Provides a logging function for trace-level log messages. The function executes the logging operation only if trace-level logging is enabled for the underlying SLF4J logger.

Provides a logging function for trace-level log messages. The function executes the logging operation only if trace-level logging is enabled for the underlying SLF4J logger.

Attributes

Returns

an instance of LogFunction that logs a given call-by-name string at the trace logging level or does nothing if trace logging is not enabled.

Provides a log function for warning-level messages. If the underlying logger has warning enabled, it logs the message; otherwise, it does nothing.

Provides a log function for warning-level messages. If the underlying logger has warning enabled, it logs the message; otherwise, it does nothing.

Attributes

Returns

a LogFunction instance which logs warning messages.

Inherited methods

def close(): Unit

Method to close. By default, this does nothing.

Method to close. By default, this does nothing.

Attributes

Inherited from:
Logger
def flush(): Unit

Method to flush. By default, this does nothing.

Method to flush. By default, this does nothing.

Attributes

Inherited from:
Logger
def isDebugEnabled: Boolean

Checks if debug level logging is enabled.

Checks if debug level logging is enabled.

Attributes

Returns

true if debug logging is enabled; false otherwise.

Inherited from:
Logger
def isInfoEnabled: Boolean

Determines whether the logging level for informational messages is enabled.

Determines whether the logging level for informational messages is enabled.

Attributes

Returns

true if informational logging is enabled, otherwise false.

Inherited from:
Logger
def isTraceEnabled: Boolean

Checks if trace level logging is enabled.

Checks if trace level logging is enabled.

Attributes

Returns

true if trace level logging is enabled, otherwise false

Inherited from:
Logger

Method to furnish a LogFunction that does nothing and which does not cause evaluation of the message.

Method to furnish a LogFunction that does nothing and which does not cause evaluation of the message.

Attributes

Returns

a LogFunction which does nothing.

Inherited from:
Logger
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product