Documentation
¶
Overview ¶
Package loglogrus adapts a *logrus.Logger to the gotd log.Logger port.
It lives in its own module so that github.com/sirupsen/logrus never enters the core github.com/gotd/log dependency graph.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New returns a log.Logger that writes to l.
logrus exposes no per-call caller-skip option, so when l has ReportCaller enabled it would report this adapter as the caller. New installs a hook that recomputes the caller from the stack, reporting the code calling log.Logger instead. The hook is a no-op when ReportCaller is disabled.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.