logrus-viewer

command module
v0.0.0-...-a90f54b Latest Latest
Warning

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

Go to latest
Published: May 19, 2021 License: MIT Imports: 8 Imported by: 0

README

Logrus Viewer

A tool to view Logrus log entries with simple, filterable UI.

Installation

You can install Logrus Viewer via go get and run.

$ go get -u github.com/noc-tech/logrus-viewer
$ logrus-viewer

How to push logs to viewer

You must add logrus.Hook to push logs to viewer.

   package main

   import (
      //***
      "github.com/noc-tech/logrus-viewer/hook"
      //***
   )

   func initLogger() {
      //***
  		logrus.AddHook(hook.New())
      //***
   }

License

MIT License

Copyright (c) 2021 NOC Tech

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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