Package com.mchange.v2.log
Class MLog
- java.lang.Object
-
- com.mchange.v2.log.MLog
-
- Direct Known Subclasses:
FallbackMLog
,Jdk14MLog
,Log4j2MLog
,Log4jMLog
,Slf4jMLog
public abstract class MLog extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description MLog()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static void
config(java.lang.String msg)
static void
entering(java.lang.String srcClass, java.lang.String srcMeth)
static void
entering(java.lang.String srcClass, java.lang.String srcMeth, java.lang.Object param)
static void
entering(java.lang.String srcClass, java.lang.String srcMeth, java.lang.Object[] params)
static void
exiting(java.lang.String srcClass, java.lang.String srcMeth)
static void
exiting(java.lang.String srcClass, java.lang.String srcMeth, java.lang.Object result)
static MLog
findByClassnames(java.lang.String[] classnames, boolean log_attempts_to_stderr)
static void
fine(java.lang.String msg)
static void
finer(java.lang.String msg)
static void
finest(java.lang.String msg)
static MLog
forceFallback()
Returns the MLog instance that was replaced by this operationstatic MLog
forceFallback(MLevel level)
Returns the MLog instance that was replaced by this operationstatic MLog
forceMLog(MLog mlog)
Returns the MLog instance that was replaced by this operationstatic MLogger
getLogger()
static MLogger
getLogger(java.lang.Class cl)
static MLogger
getLogger(java.lang.String name)
abstract MLogger
getMLogger()
MLogger
getMLogger(java.lang.Class cl)
abstract MLogger
getMLogger(java.lang.String name)
static void
info(java.lang.String msg)
static MLog
instance()
static void
log(MLevel l, java.lang.String msg)
static void
log(MLevel l, java.lang.String msg, java.lang.Object param)
static void
log(MLevel l, java.lang.String msg, java.lang.Object[] params)
static void
log(MLevel l, java.lang.String msg, java.lang.Throwable t)
static void
logp(MLevel l, java.lang.String srcClass, java.lang.String srcMeth, java.lang.String msg)
static void
logp(MLevel l, java.lang.String srcClass, java.lang.String srcMeth, java.lang.String msg, java.lang.Object param)
static void
logp(MLevel l, java.lang.String srcClass, java.lang.String srcMeth, java.lang.String msg, java.lang.Object[] params)
static void
logp(MLevel l, java.lang.String srcClass, java.lang.String srcMeth, java.lang.String msg, java.lang.Throwable t)
static void
logrb(MLevel l, java.lang.String srcClass, java.lang.String srcMeth, java.lang.String rb, java.lang.String msg)
static void
logrb(MLevel l, java.lang.String srcClass, java.lang.String srcMeth, java.lang.String rb, java.lang.String msg, java.lang.Object param)
static void
logrb(MLevel l, java.lang.String srcClass, java.lang.String srcMeth, java.lang.String rb, java.lang.String msg, java.lang.Object[] params)
static void
logrb(MLevel l, java.lang.String srcClass, java.lang.String srcMeth, java.lang.String rb, java.lang.String msg, java.lang.Throwable t)
static void
refreshConfig()
static void
refreshConfig(MultiPropertiesConfig[] overrides, java.lang.String overridesDescription)
static void
severe(java.lang.String msg)
static void
throwing(java.lang.String srcClass, java.lang.String srcMeth, java.lang.Throwable t)
static boolean
usingRedirectableLoggers()
static void
warning(java.lang.String msg)
-
-
-
Method Detail
-
usingRedirectableLoggers
public static boolean usingRedirectableLoggers()
-
refreshConfig
public static void refreshConfig()
-
forceFallback
public static MLog forceFallback()
Returns the MLog instance that was replaced by this operation
-
forceFallback
public static MLog forceFallback(MLevel level)
Returns the MLog instance that was replaced by this operation
-
forceMLog
public static MLog forceMLog(MLog mlog)
Returns the MLog instance that was replaced by this operation
-
refreshConfig
public static void refreshConfig(MultiPropertiesConfig[] overrides, java.lang.String overridesDescription)
-
findByClassnames
public static MLog findByClassnames(java.lang.String[] classnames, boolean log_attempts_to_stderr)
-
instance
public static MLog instance()
-
getLogger
public static MLogger getLogger(java.lang.String name)
-
getLogger
public static MLogger getLogger(java.lang.Class cl)
-
getLogger
public static MLogger getLogger()
-
log
public static void log(MLevel l, java.lang.String msg)
-
log
public static void log(MLevel l, java.lang.String msg, java.lang.Object param)
-
log
public static void log(MLevel l, java.lang.String msg, java.lang.Object[] params)
-
log
public static void log(MLevel l, java.lang.String msg, java.lang.Throwable t)
-
logp
public static void logp(MLevel l, java.lang.String srcClass, java.lang.String srcMeth, java.lang.String msg)
-
logp
public static void logp(MLevel l, java.lang.String srcClass, java.lang.String srcMeth, java.lang.String msg, java.lang.Object param)
-
logp
public static void logp(MLevel l, java.lang.String srcClass, java.lang.String srcMeth, java.lang.String msg, java.lang.Object[] params)
-
logp
public static void logp(MLevel l, java.lang.String srcClass, java.lang.String srcMeth, java.lang.String msg, java.lang.Throwable t)
-
logrb
public static void logrb(MLevel l, java.lang.String srcClass, java.lang.String srcMeth, java.lang.String rb, java.lang.String msg)
-
logrb
public static void logrb(MLevel l, java.lang.String srcClass, java.lang.String srcMeth, java.lang.String rb, java.lang.String msg, java.lang.Object param)
-
logrb
public static void logrb(MLevel l, java.lang.String srcClass, java.lang.String srcMeth, java.lang.String rb, java.lang.String msg, java.lang.Object[] params)
-
logrb
public static void logrb(MLevel l, java.lang.String srcClass, java.lang.String srcMeth, java.lang.String rb, java.lang.String msg, java.lang.Throwable t)
-
entering
public static void entering(java.lang.String srcClass, java.lang.String srcMeth)
-
entering
public static void entering(java.lang.String srcClass, java.lang.String srcMeth, java.lang.Object param)
-
entering
public static void entering(java.lang.String srcClass, java.lang.String srcMeth, java.lang.Object[] params)
-
exiting
public static void exiting(java.lang.String srcClass, java.lang.String srcMeth)
-
exiting
public static void exiting(java.lang.String srcClass, java.lang.String srcMeth, java.lang.Object result)
-
throwing
public static void throwing(java.lang.String srcClass, java.lang.String srcMeth, java.lang.Throwable t)
-
severe
public static void severe(java.lang.String msg)
-
warning
public static void warning(java.lang.String msg)
-
info
public static void info(java.lang.String msg)
-
config
public static void config(java.lang.String msg)
-
fine
public static void fine(java.lang.String msg)
-
finer
public static void finer(java.lang.String msg)
-
finest
public static void finest(java.lang.String msg)
-
getMLogger
public MLogger getMLogger(java.lang.Class cl)
-
getMLogger
public abstract MLogger getMLogger(java.lang.String name)
-
getMLogger
public abstract MLogger getMLogger()
-
-