...

Source file src/edge-infra.dev/pkg/lib/fog/doc.go

Documentation: edge-infra.dev/pkg/lib/fog

     1  // Package fog (Foundation Log) implements a zap-backed logr LogSink that
     2  // integrates with Google Cloud Logging special keys.
     3  //
     4  // # Logging Levels
     5  //
     6  // This package provides an opinionated reconciliation of logr.Logger, Zap levels,
     7  // and Google cloud logging levels:
     8  //
     9  //   - logr.Logger.V(0).Info is equivalent to Google INFO
    10  //   - Any higher V levels (1..n) have their log level set to DEBUG, because it is
    11  //     the only level finer than INFO. An additional field is added to logs with the
    12  //     V level under the `level` key to support additional filtering levels when
    13  //     querying logs.
    14  //   - Errors are always logged, per logr.Logger.
    15  package fog
    16  

View as plain text