logrus

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2025 License: BSD-3-Clause Imports: 2 Imported by: 3 modules, 4 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package logrus registers the global logrus logger to the pio ecosystem, install logrus first:

$ go get github.com/

Example Code:

package main

import (
	"github.com/kataras/pio"
	_ "github.com/kataras/pio/_examples/integrations/logrus"
)

func main() {
	pio.Print("This is an info message that will be printed to the logrus' output")
}

Index

Constants

View Source
const Name = "logrus"

Name of this printer.

Variables

This section is empty.

Functions

func Register

func Register(printf func(string, ...interface{})) *pio.Printer

Register registers a specific logrus printf-compatible function signature to the pio registry.

pio can take only one by-design because it is not based on any log levels but, you can extend it by calling its Hijack function to determinate what to log.

func Remove

func Remove()

Remove removes the logrus printer from the pio.

Types

This section is empty.

Directories

Path Synopsis
errorf command
multi command

Jump to

Keyboard shortcuts

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