public class Slf4jLogger
extends liquibase.logging.core.AbstractLogger
AbstractLogger
which delegates to an SLF4J Logger
instance retrieved
from the LoggerFactory
. When the logger is constructed, the name of Liquibase's default logger ("liquibase")
is used to retrieve a "fallback" logger. When #setName(String)
is called, the fallback logger is replaced
with the named logger.Constructor and Description |
---|
Slf4jLogger()
Constructs a new
Slf4jLogger and initializes the wrapped SLF4J Logger with a fallback reference,
which will be used for any log output generated before #setName(String) is called. |
Modifier and Type | Method and Description |
---|---|
void |
debug(liquibase.logging.LogType logType,
String s) |
void |
debug(liquibase.logging.LogType logType,
String s,
Throwable throwable) |
void |
debug(String message)
Logs the provided message to the wrapped SLF4J logger at debug level.
|
void |
debug(String message,
Throwable e)
Logs the provided message and throwable to the wrapped SLF4J logger at debug level.
|
void |
info(liquibase.logging.LogType logType,
String s) |
void |
info(liquibase.logging.LogType logType,
String s,
Throwable throwable) |
void |
info(String message)
Logs the provided message to the wrapped SLF4J logger at info level.
|
void |
info(String message,
Throwable e)
Logs the provided message and throwable to the wrapped SLF4J logger at info level.
|
void |
severe(liquibase.logging.LogType logType,
String s) |
void |
severe(liquibase.logging.LogType logType,
String s,
Throwable throwable) |
void |
severe(String message)
Logs the provided message to the wrapped SLF4J logger at error level.
|
void |
severe(String message,
Throwable e)
Logs the provided message and throwable to the wrapped SLF4J logger at error level.
|
void |
warning(liquibase.logging.LogType logType,
String s) |
void |
warning(liquibase.logging.LogType logType,
String s,
Throwable throwable) |
void |
warning(String message)
Logs the provided message to the wrapped SLF4J logger at warn level.
|
void |
warning(String message,
Throwable e)
Logs the provided message and throwable to the wrapped SLF4J logger at warn level.
|
public Slf4jLogger()
Slf4jLogger
and initializes the wrapped SLF4J Logger
with a fallback reference,
which will be used for any log output generated before #setName(String)
is called.public void debug(String message)
debug
in interface liquibase.logging.Logger
debug
in class liquibase.logging.core.AbstractLogger
message
- the message to logpublic void debug(String message, Throwable e)
debug
in interface liquibase.logging.Logger
debug
in class liquibase.logging.core.AbstractLogger
message
- the message to loge
- the throwable to logpublic void info(String message)
info
in interface liquibase.logging.Logger
info
in class liquibase.logging.core.AbstractLogger
message
- the message to logpublic void info(String message, Throwable e)
info
in interface liquibase.logging.Logger
info
in class liquibase.logging.core.AbstractLogger
message
- the message to loge
- the throwable to logpublic void severe(String message)
Note: SLF4J's API does not have a "severe" level, so error is used as the nearest neighbor.
severe
in interface liquibase.logging.Logger
severe
in class liquibase.logging.core.AbstractLogger
message
- the message to logpublic void severe(String message, Throwable e)
Note: SLF4J's API does not have a "severe" level, so error is used as the nearest neighbor.
severe
in interface liquibase.logging.Logger
severe
in class liquibase.logging.core.AbstractLogger
message
- the message to loge
- the throwable to logpublic void warning(String message)
warning
in interface liquibase.logging.Logger
warning
in class liquibase.logging.core.AbstractLogger
message
- the message to logpublic void warning(String message, Throwable e)
warning
in interface liquibase.logging.Logger
warning
in class liquibase.logging.core.AbstractLogger
message
- the message to loge
- the throwable to logpublic void severe(liquibase.logging.LogType logType, String s)
public void warning(liquibase.logging.LogType logType, String s)
public void info(liquibase.logging.LogType logType, String s)
public void debug(liquibase.logging.LogType logType, String s)
Copyright © 2021 Atlassian. All rights reserved.