Skip to content

Releases: google/flogger

Flogger 0.8

17 Oct 18:43
Compare
Choose a tag to compare

Changelog:

  • Support custom logsite formatting in SimpleAndroidLoggerBackend. (cb9e836)
  • Allow no-op params or null in ScopedLoggingContext.Builder methods. (82362ff, 5aa0649)
  • Remove generic type from convenience LoggingApi#with method signature. This is a SOURCE-INCOMPATIBLE change for Kotlin clients, since those will have had to supply a useless type parameter and will now have to delete it. (e8f97f0)
  • Added a new PRNG based onAverageEvery(N) rate limiting method. (c25d34e)
  • Added a new per() method to support arbitrary aggregation keys. (bddcc1d)
  • Improved docs for static methods in ScopedLoggingContexts. (c568eee)
  • Improved rate limiter behavior. (90f01f1)
  • Removed unused type parameter from ScopedLoggingContexts#applyLogLevelMap. (e2d80fb)
  • Refactored rate limiter classes. (209a0a4)
  • Fix bug whereby unused LogSiteStats were being generated. (bd2d607)

This release also updates many dependency versions, including updating log4j2 and gRPC to newer versions without vulnerabilities.

Flogger 0.7.4

20 Dec 21:38
Compare
Choose a tag to compare

Updates the log4j dependency of the flogger-log4j2-backend to 2.17.0 (CVE-2021-45105).

Note that users of this backend should also be able to update their log4j dependency without updating to this Flogger version.

Flogger 0.7.3

16 Dec 04:15
Compare
Choose a tag to compare

Updates the log4j dependency of the flogger-log4j2-backend to 2.16.0 (CVE-2021-45046).

Note that users of this backend should also be able to update their log4j dependency without updating to this Flogger version.

Flogger 0.7.2

12 Dec 14:43
Compare
Choose a tag to compare

Updates the log4j dependency of the flogger-log4j2-backend to 2.15.0 (CVE-2021-44228).

Note that users of this backend should also be able to update their log4j dependency without updating to this Flogger version.

Flogger 0.7.1

27 Sep 22:34
Compare
Choose a tag to compare

Significant change

Changed DefaultPlatform to attempt to load services (currently BackendFactory, ContextDataProvider and Clock) from the classpath if not specified by system property. The log4j, log4j2 and slf4j backend artifacts can now be loaded automatically in this way, as can the gRPC ContextDataProvider artifact. Third party service implementations can also work with this system by ensuring their artifact includes service metadata for the appropriate classes in the jar, such as annotating the implementation classes using AutoService. (1fea2f3)

Other changes

  • Added more useful methods to the ScopedLoggingContexts helper API. (de2f5a3)
  • Tags given at the log site can be merged with injected tags. (6e97e9e)
  • The log4j2 backend now supports ScopedLoggingContext. (d3e4a98)
  • Updated SLF4J backend to include context metadata. (9d7d2c6)
  • Include context metadata for log4j2. (8846b42)
  • Made StackBasedLogSite non-public (use LogSites.logSiteFrom() instead). (7373a43)
  • Added per() methods to allow for aggregation of rate limited log statements. (69c7480)
  • Fixed an issue with log4j2 backend where output would include unnecessary info such as level as part of the logger name. (4279348)

Flogger 0.7

24 Sep 20:54
Compare
Choose a tag to compare

IMPORTANT

There was an error cutting this release and the main Flogger jar is missing several necessary class files. Please use Flogger 0.7.1 instead.

Flogger 0.6

31 Mar 18:15
Compare
Choose a tag to compare
  • Eliminated self-reference in pom.xml. (6a468cc)
  • Added gRPC context implementation. (79957c8)
  • Renamed LoggingScope to LoggingContextCloseable. (8442b81)
  • Tags no longer explicitly return a SortedSet/Map (callers should use <? extends Set/Map>). (b849fa9)
  • Platform implementations now use ContextDataProvider instead of LoggingContext (which will be deleted soon).
  • Removed JdkLoggerConfig (#142). (62d0db6)
  • Added provisional support for metadata keys/values in scopes. (f2ab0fd)
  • Made MetadataKey's emit() method properly typed for its value. (95ded18)
  • Added with(MetadataKey<Boolean>) method for setting metadata "flags". (2f1243e)
  • Improved the ScopedLoggingContext API. (169d67d)
  • Added log source information to the Log4J2 Event. (e1c6794)
  • Various refactorings and test improvements.

Flogger 0.5.1

31 Mar 08:43
Compare
Choose a tag to compare

Fixes an issue in flogger-0.5 where the LogSites class was missing.

Flogger 0.5

15 Mar 17:19
Compare
Choose a tag to compare
  • Explicitly allow an array containing null objects in logVarargs(). (0805f96)
  • Adding "callerOf(Class<?>)" to LogSites. (91d4388)
  • Adding initial common API for per-request logging configuration support (implementation to follow). (e0493d7)
  • Add support for '(' flag in Flogger for negative numbers (df6dfe5)
  • Minor code tidying of the log4j backend. (e1374b4)
  • Add support for log4j2 as a backend. (356778a)
  • 71f6083:
      - Promoting the "with()" method from GoogleLogger to FluentLogger.
        - This is useful to piggyback semantic information about the log statement into For example, identifying special log statements which should be handled differently (e.g. sent to a different log file).

Flogger 0.4

15 Mar 14:49
Compare
Choose a tag to compare
Flogger 0.4 Pre-release
Pre-release
  • Adds a new slf4j-backend-factory artifact (2a67023)
  • Updating LoggerConfig docs to make it clear it's not going to work for all backends. (cd769d1)
  • Add support for force logging (9d3e001)