puzzlelogger

package module
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: Apache-2.0 Imports: 5 Imported by: 1

README

puzzlelogger

Common package to create and use Zap logger.

Documentation

Overview

* * Copyright 2023 puzzlelogger authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * 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

This section is empty.

Functions

func New

func New() *zap.Logger

Types

type DebugWrapper added in v1.2.1

type DebugWrapper struct {
	Inner *zap.Logger
	Lib   string
}

func (DebugWrapper) Write added in v1.2.1

func (w DebugWrapper) Write(data []byte) (int, error)

type ErrorWrapper added in v1.1.0

type ErrorWrapper struct {
	Inner *zap.Logger
	Lib   string
}

func (ErrorWrapper) Write added in v1.1.0

func (w ErrorWrapper) Write(data []byte) (int, error)

type FatalWrapper added in v1.1.0

type FatalWrapper struct {
	Inner *zap.Logger
	Lib   string
}

func (FatalWrapper) Write added in v1.1.0

func (w FatalWrapper) Write(data []byte) (int, error)

type InfoWrapper added in v1.1.0

type InfoWrapper struct {
	Inner *zap.Logger
	Lib   string
}

func (InfoWrapper) Write added in v1.1.0

func (w InfoWrapper) Write(data []byte) (int, error)

type WarnWrapper added in v1.1.0

type WarnWrapper struct {
	Inner *zap.Logger
	Lib   string
}

func (WarnWrapper) Write added in v1.1.0

func (w WarnWrapper) Write(data []byte) (int, error)

Directories

Path Synopsis
* * Copyright 2023 puzzlelogger authors.
* * Copyright 2023 puzzlelogger authors.

Jump to

Keyboard shortcuts

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