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, used to retrieve logger configurations.

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.