Skip to main content

GetLogWriter

Returns a standard io.PipeWriter that logs using the same logger configurations in this package.

def GetLogWriter(
ctx: context.Context
) - > *io.PipeWriter

Returns a standard io.PipeWriter that logs using the same logger configurations in this package.

Parameters

NameTypeDescription
ctxcontext.ContextThe context for the operation, which can carry deadlines, cancellation signals, and other request-scoped values.

Returns

TypeDescription
*io.PipeWriterA standard io.PipeWriter that can be used to write log messages, which will be processed by the package's configured logger.