Class PatchLogger
java.lang.Object
io.opentelemetry.javaagent.bootstrap.PatchLogger
Dependencies of the agent sometimes call java.util.logging.Logger.getLogger(). This can have the
effect of initializing the global LogManager incompatibly with the user's app.
Shadow rewrites will redirect those calls to this class, which will return a safe PatchLogger.
This also has the desired outcome of redirecting all logging to a single destination, as
configured by the LoggingCustomizer
implementation.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
addHandler
(Handler handler) void
void
void
void
void
void
void
void
void
void
void
void
void
static PatchLogger
static PatchLogger
getAnonymousLogger
(String resourceBundleName) static PatchLogger
Handler[]
getLevel()
static PatchLogger
static PatchLogger
getName()
void
void
boolean
isLoggable
(Level level) void
void
void
void
void
void
void
void
void
void
void
void
logp
(Level level, String sourceClass, String sourceMethod, Throwable thrown, Supplier<String> msgSupplier) void
void
void
logrb
(Level level, String sourceClass, String sourceMethod, String bundleName, String msg, Object param1) void
logrb
(Level level, String sourceClass, String sourceMethod, String bundleName, String msg, Object[] params) void
logrb
(Level level, String sourceClass, String sourceMethod, String bundleName, String msg, Throwable thrown) void
logrb
(Level level, String sourceClass, String sourceMethod, ResourceBundle bundle, String msg, Object... params) void
logrb
(Level level, String sourceClass, String sourceMethod, ResourceBundle bundle, String msg, Throwable thrown) void
logrb
(Level level, ResourceBundle bundle, String msg, Object... params) void
logrb
(Level level, ResourceBundle bundle, String msg, Throwable thrown) void
void
setParent
(PatchLogger parent) void
setResourceBundle
(ResourceBundle resourceBundle) void
void
void
void
void
-
Field Details
-
GLOBAL_LOGGER_NAME
- See Also:
-
global
-
-
Method Details
-
getLogger
-
getLogger
-
getName
-
severe
-
severe
-
warning
-
warning
-
info
-
info
-
config
-
config
-
fine
-
fine
-
finer
-
finer
-
finest
-
finest
-
log
-
log
-
log
-
log
-
log
-
log
-
log
-
isLoggable
-
getLevel
-
logp
-
logp
-
logp
-
logp
-
logp
-
logp
-
logrb
-
logrb
-
logrb
-
logrb
-
logrb
-
logrb
-
logrb
-
logrb
-
entering
-
entering
-
entering
-
exiting
-
exiting
-
throwing
-
getResourceBundle
-
setResourceBundle
-
getResourceBundleName
-
getParent
-
setParent
-
setLevel
-
getHandlers
-
addHandler
-
getAnonymousLogger
-
getAnonymousLogger
-
getGlobal
-