Package com.google.common.flogger
Class GoogleLogContext<LOGGER extends com.google.common.flogger.AbstractLogger<API>,API extends GoogleLoggingApi<API>>
- java.lang.Object
-
- com.google.common.flogger.LogContext<LOGGER,API>
-
- com.google.common.flogger.GoogleLogContext<LOGGER,API>
-
- Type Parameters:
LOGGER- The logger implementation from which this context is produced.API- The logging api supported by this context.
- All Implemented Interfaces:
com.google.common.flogger.backend.LogData,GoogleLoggingApi<API>,com.google.common.flogger.LoggingApi<API>
@CheckReturnValue public abstract class GoogleLogContext<LOGGER extends com.google.common.flogger.AbstractLogger<API>,API extends GoogleLoggingApi<API>> extends com.google.common.flogger.LogContext<LOGGER,API> implements GoogleLoggingApi<API>
Implementation of any Google specific extensions to the default fluent logging API. This could be implemented purely as an inner class inside GoogleLogger, but by making it abstract and top level, it allows other teams to subclass it to add additional functionality.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.common.flogger.LogContext
com.google.common.flogger.LogContext.Key
-
Nested classes/interfaces inherited from interface com.google.common.flogger.GoogleLoggingApi
GoogleLoggingApi.NoOp<API extends GoogleLoggingApi<API>>
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGoogleLogContext(java.util.logging.Level level, boolean isForced)Creates a logging context for the GoogleLoggerApi.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.google.common.flogger.parser.MessageParsergetMessageParser()-
Methods inherited from class com.google.common.flogger.LogContext
addMetadata, api, atMostEvery, every, getArguments, getLevel, getLiteralArgument, getLogger, getLoggerName, getLogSite, getMetadata, getTemplateContext, getTimestampMicros, getTimestampNanos, isEnabled, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, logVarargs, noOp, per, per, postProcess, removeMetadata, wasForced, with, with, withCause, withInjectedLogSite, withInjectedLogSite, withStackTrace
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.google.common.flogger.LoggingApi
atMostEvery, every, isEnabled, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, logVarargs, per, per, with, with, withCause, withInjectedLogSite, withInjectedLogSite, withStackTrace
-
-
-
-
Method Detail
-
getMessageParser
protected final com.google.common.flogger.parser.MessageParser getMessageParser()
- Specified by:
getMessageParserin classcom.google.common.flogger.LogContext<LOGGER extends com.google.common.flogger.AbstractLogger<API>,API extends GoogleLoggingApi<API>>
-
-