logutils

package
Version: v1.82.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL