Package net.bluemind.core.commons.logs
Class MdcLogUser
java.lang.Object
net.bluemind.core.commons.logs.MdcLogUser
- All Implemented Interfaces:
AutoCloseable
,IMdcLogUser
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected void
protected void
static void
logErrorAsUser
(String user, org.slf4j.Logger log, String format, Object... arguments) void
logErrorWithMdc
(Throwable t, String format, Object... arguments) protected void
static void
logInfoAsUser
(String user, org.slf4j.Logger log, String format, Object... arguments) void
logInfoWithMdc
(String format, Object... arguments) protected void
protected void
open()
-
Field Details
-
ANONYMOUS
- See Also:
-
user
-
log
protected org.slf4j.Logger log
-
-
Constructor Details
-
MdcLogUser
public MdcLogUser() -
MdcLogUser
-
-
Method Details
-
logInfoWithMdc
- Specified by:
logInfoWithMdc
in interfaceIMdcLogUser
-
logErrorWithMdc
- Specified by:
logErrorWithMdc
in interfaceIMdcLogUser
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-
open
protected void open() -
logInfoAsUser
-
logErrorAsUser
-
logError
-
logDebug
-
logInfo
-
logWarn
-