Class SimpleLogRecord

  • All Implemented Interfaces:
    java.io.Serializable

    public final class SimpleLogRecord
    extends AbstractLogRecord
    An eagerly evaluating LogRecord which is created by the Fluent Logger frontend and can be passed to a normal log Handler instance for output.
    See Also:
    Serialized Form
    • Method Detail

      • create

        public static SimpleLogRecord create​(com.google.common.flogger.backend.LogData data,
                                             com.google.common.flogger.backend.Metadata scope)
        Creates a SimpleLogRecord for a normal log statement from the given data.
      • create

        @Deprecated
        public static SimpleLogRecord create​(com.google.common.flogger.backend.LogData data)
        Deprecated.
        Use create(LogData data, Metadata scope) and pass scoped metadata in.
      • error

        public static SimpleLogRecord error​(java.lang.RuntimeException error,
                                            com.google.common.flogger.backend.LogData data,
                                            com.google.common.flogger.backend.Metadata scope)
        Creates a SimpleLogRecord in the case of an error during logging.
      • error

        @Deprecated
        public static SimpleLogRecord error​(java.lang.RuntimeException error,
                                            com.google.common.flogger.backend.LogData data)
        Deprecated.
        Use error(LogData data, Metadata scope) and pass scoped metadata in.