Skip to content

GoblinBear/clog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

clog

  • Multi-level coloring logger.
  • Print coloring information
    • Prefix word
    • File name
    • Line
    • Function name

Installation

  • Simply run
    $ go get github.com/GoblinBear/clog

Library

  • clog.Info():Print greed prefix word [INFO]
  • clog.Debug():Print yellow prefix word [DEBUG]
  • clog.Error():Print red prefix word [ERROR]

Example

package main

import (
    "github.com/GoblinBear/clog"
)

func main() {
    clog.Info("There is some information.")

    num := 5
    clog.Debug("Total = %d monkeys", num)
    
    clog.Error("Connect to server error.")
}

About

Multi-level coloring logger.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages