Class LogWrapper
java.lang.Object
com.github.blutorange.maven.plugin.closurecompiler.common.LogWrapper
- All Implemented Interfaces:
org.apache.maven.plugin.logging.Log
A wrapper for a logger that allows overwriting the log level.
- Author:
- madgaksha
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
debug
(CharSequence content) void
debug
(CharSequence content, Throwable error) void
void
error
(CharSequence content) void
error
(CharSequence content, Throwable error) void
void
info
(CharSequence content) void
info
(CharSequence content, Throwable error) void
boolean
boolean
boolean
boolean
void
warn
(CharSequence content) void
warn
(CharSequence content, Throwable error) void
-
Constructor Details
-
LogWrapper
- Parameters:
log
- Logger to wrap.level
- Level to override the default log level of the wrapped logger. Ifnull
, do not overwrite the log level.
-
-
Method Details
-
debug
- Specified by:
debug
in interfaceorg.apache.maven.plugin.logging.Log
-
debug
- Specified by:
debug
in interfaceorg.apache.maven.plugin.logging.Log
-
debug
- Specified by:
debug
in interfaceorg.apache.maven.plugin.logging.Log
-
error
- Specified by:
error
in interfaceorg.apache.maven.plugin.logging.Log
-
error
- Specified by:
error
in interfaceorg.apache.maven.plugin.logging.Log
-
error
- Specified by:
error
in interfaceorg.apache.maven.plugin.logging.Log
-
info
- Specified by:
info
in interfaceorg.apache.maven.plugin.logging.Log
-
info
- Specified by:
info
in interfaceorg.apache.maven.plugin.logging.Log
-
info
- Specified by:
info
in interfaceorg.apache.maven.plugin.logging.Log
-
isDebugEnabled
public boolean isDebugEnabled()- Specified by:
isDebugEnabled
in interfaceorg.apache.maven.plugin.logging.Log
-
isErrorEnabled
public boolean isErrorEnabled()- Specified by:
isErrorEnabled
in interfaceorg.apache.maven.plugin.logging.Log
-
isInfoEnabled
public boolean isInfoEnabled()- Specified by:
isInfoEnabled
in interfaceorg.apache.maven.plugin.logging.Log
-
isWarnEnabled
public boolean isWarnEnabled()- Specified by:
isWarnEnabled
in interfaceorg.apache.maven.plugin.logging.Log
-
warn
- Specified by:
warn
in interfaceorg.apache.maven.plugin.logging.Log
-
warn
- Specified by:
warn
in interfaceorg.apache.maven.plugin.logging.Log
-
warn
- Specified by:
warn
in interfaceorg.apache.maven.plugin.logging.Log
-