stdlog

package
v0.4.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeFile

func MakeFile(filePath string) (send.Sender, error)

MakeFile creates a file-based logger, writing output to the specified file. The Sender instance is not configured: Pass to Journaler.SetSender or call SetName before using.

func MakePlainFile

func MakePlainFile(filePath string) (send.Sender, error)

MakePlainFile writes all output to a file, but does not prepend any log formatting to each message.

The underlying mechanism uses the standard library's logging facility.

func MakeStdError

func MakeStdError() send.Sender

MakeStdError returns an unconfigured Sender implementation that writes all logging output to standard error.

func MakeStdOutput

func MakeStdOutput() send.Sender

MakeStdOutput returns an unconfigured native standard-out logger.

func WrapWriter

func WrapWriter(wr io.Writer) send.Sender

WrapWriter constructs a new unconfigured sender that directly wraps any writer implementation. These loggers prepend time and logger name information to the beginning of log lines.

As a special case, if the writer is a *WriterSender, then this method will unwrap and return the underlying sender from the writer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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