Documentation ¶ Overview ¶ Package logging constructs console and file outputs for the default Zap logger. Index ¶ func New(level string, console io.Writer, filePath string) (logger.Logger, func() error, error) func Report(err error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func New ¶ func New(level string, console io.Writer, filePath string) (logger.Logger, func() error, error) New writes readable text to the console and optional JSON to a rotating file. Nil console selects stderr; an empty filePath disables file output. The caller calls close after transports and application resources have stopped. func Report ¶ func Report(err error) Report writes a terminal startup/runtime error before process exit. Types ¶ This section is empty. Source Files ¶ View all Source files logging.gotext.go Click to show internal directories. Click to hide internal directories.