loglogrus

package module
v0.1.0 Latest Latest
Warning

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

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

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

func New(l *logrus.Logger) log.Logger

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.

Jump to

Keyboard shortcuts

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