Package com.google.errorprone.bugpatterns.flogger
package com.google.errorprone.bugpatterns.flogger
-
ClassDescriptionA
BugChecker
; see the associatedBugPattern
annotation for details.Detects invocations ofLoggingApi.log(String)
for which the argument is not a compile-time constant and provides suggested alternatives.Flags cases where there is an exception available that could be set as the cause in a log message.Ensures that class-level FluentLogger objects are private static final.Bugpattern to prevent splitting flogger log invocations into multiple statements.ABugChecker
; see the associatedBugPattern
annotation for details.Flogger's withCause(Throwable) method checksDetects Flogger log statements that pass Exceptions to the log method instead of using withCause.