Documentation

Overview

    Package logutils contains an initializer to configure zap.

    Index

    Constants

    This section is empty.

    Variables

    This section is empty.

    Functions

    func Configure

    func Configure(level string, format string) zap.Config

      Configure configures the shared default logger.

      func ConfigureWithName

      func ConfigureWithName(serviceName string, level string, format string) zap.Config

        ConfigureWithName configures the shared default logger.

        func ConfigureWithOptions

        func ConfigureWithOptions(level string, format string, file string, fileOnly bool, prettyTimestamp bool) zap.Config

          ConfigureWithOptions configures the shared default logger with options such as file and timestamp formats.

          func SetOutput

          func SetOutput(w zapcore.WriteSyncer, conf zap.Config) zap.Option

            SetOutput returns the zap option with the new sync writer

            Types

            This section is empty.