package
0.2.4
Repository: https://github.com/go-predator/predator.git
Documentation: pkg.go.dev

# Functions

IsDebug determines whether the current environment is `DEBUG` through the `DEBUG` variable in the current environment variables.
MustToConsoleAndFile returns an `io.Writer` that can both output the log to a control or terminal emulator and save the log to a local file, which will panic if there is an error opening the file.
MustToFile returns an `io.Writer` that saves the log to a local file and will panic if there is an error opening the file.
NewLogger returns a new `Logger` pointer.
ToConsole returns an `io.Writer` that outputs the log to the console or terminal emulator or an `error`.
ToConsoleAndFile returns an `io.Writer` that can both output the log to a control or terminal emulator and save the log to a local file, or an `error`.
ToFile returns an `io.Writer` that saves the log to a local file or an `error`.

# Constants

log level.
log level.
log level.
log level.
log level.

# Variables

Console default time format with millisecond accuracy.
Default time format with nanosecond precision.

# Structs

Arg records the parameters required in the log as key-value pairs, the key is of type `string`, and the value can be of any type.
Logger records a `zerolog.Logger` pointer and uses this pointer to implement all logging methods.

# Type aliases

Level defines the log level.