Skip to main content

Panicln

Logs a message at level Panic on the standard logger.

def Panicln(
ctx: context.Context,
args: ...interface{}
)

Logs a message at level Panic on the standard logger. This function is used to log critical errors that should cause the program to terminate.

Parameters

NameTypeDescription
ctxcontext.ContextThe context for the logger operation, allowing for cancellation and carrying request-scoped values.
args...interface{}The arguments to be logged, which will be printed with a newline at the end.