Categorygithub.com/noc-tech/logrus-viewer
modulepackage
0.0.0-20210519072140-a90f54b88444
Repository: https://github.com/noc-tech/logrus-viewer.git
Documentation: pkg.go.dev

# 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

# Packages

No description provided by the author