Help us shape the future of Go! Take the 2026 Go Developer Survey

log

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultConfig = Config{
		File: "out.log",
	}

	// Convenience shortcuts for logging levels
	Debug = logger.Debug
	Info  = logger.Info
	Warn  = logger.Warn
	Error = logger.Error
	Fatal = logger.Fatal
	Panic = logger.Panic
	With  = logger.With
)
View Source
var (
	// Convenience shortcut for setting logging level
	DebugLevel = zerolog.DebugLevel
	InfoLevel  = zerolog.InfoLevel
	WarnLevel  = zerolog.WarnLevel
	ErrorLevel = zerolog.ErrorLevel
	SetLevel   = zerolog.SetGlobalLevel
)

Functions

This section is empty.

Types

type Config

type Config struct {
	File string
}

type Logger

type Logger = zerolog.Logger

Logger aliases the zerolog.Logger

func New

func New(cfg Config) Logger

New creates a new multi-level logger

Jump to

Keyboard shortcuts

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