logging

package module
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2025 License: MIT Imports: 3 Imported by: 3

README

ngr-logging

logging module (logrus inside) TODO:

  • add other logger instances creation
  • add multi-writers logging
  • rewrite formatter logic

import

import "github.com/NGRsoftlab/ngr-logging"

examples

logging.Logger.Trace("trace msg")
logging.Logger.Debug("debug msg") // Debugf, etc.
logging.Logger.Info("info msg") // Infof, etc.
logging.Logger.Warning("warn msg") // Warningf, etc.
logging.Logger.Error("error msg") // Errorf, etc.
logging.Logger.Fatal("fatal msg")
logging.Logger.Panic("panic msg") // do not use panic pls ^^

// also you can import logging like ". "github.com/NGRsoftlab/ngr-logging"" and use Logger.Debug("debug") constructions
// without logging alias

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger = NewLogger()

Logger - Default logger

Functions

func NewLogger

func NewLogger() *logrus.Logger

NewLogger Logrus logger creation.

Types

This section is empty.

Directories

Path Synopsis
writers
chwriter module

Jump to

Keyboard shortcuts

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