Categorygithub.com/rclancey/logging
modulepackage
1.0.1
Repository: https://github.com/rclancey/logging.git
Documentation: pkg.go.dev

# README

Logging package for Go

Coverage Status GoDoc

Thus package provides a more complex logger than the default provided by the standard library log package

Installation

Use the go command:

$ go get github.com/rclancey/logging

Example

errlog := logging.NewLogger(os.Stdout, logging.DEBUG)
errlog.Colorize()
errlog.SetLevelColor(logging.INFO, logging.ColorCyan, logging.ColorDefault, logging.FontDefault)
errlog.SetLevelColor(logging.LOG, logging.ColorMagenta, logging.ColorDefault, logging.FontDefault)
errlog.SetLevelColor(logging.NONE, logging.ColorHotPink, logging.ColorDefault, logging.FontDefault)
errlog.SetTimeFormat("2006-01-02 15:04:05.000")
errlog.SetTimeColor(logging.ColorDefault, logging.ColorDefault, logging.FontItalic | logging.FontLight)
errlog.SetSourceFormat("%{basepath}:%{linenumber}:")
errlog.SetSourceColor(logging.ColorGreen, logging.ColorDefault, logging.FontDefault)
errlog.SetPrefixColor(logging.ColorOrange, logging.ColorDefault, logging.FontDefault)
errlog.SetMessageColor(logging.ColorDefault, logging.ColorDefault, logging.FontDefault)
errlog.MakeDefault()
errlog.Infoln("Server starting...")

Documentation

Documentation is hosted at GoDoc project.

Copyright

Copyright (C) 2019-2020 by Ryan Clancey

Package released under MIT License. See LICENSE for details.

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author