logger

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: MIT Imports: 4 Imported by: 0

README

logger

'logger' is a simple logging library for Go.

Installation

go get github.com/emrebdr/logger

Usage

import(
    "github.com/emrebdr/logger"
)

logger.Log("this is a debug message")
logger.LogInfo("this is an info message")
logger.LogWarning("this is a warning message")
logger.LogError("this is an error message")
logger.LogSuccess("this is a success message")

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BLUE = color.New(color.FgBlue).SprintFunc()
View Source
var GREEN = color.New(color.FgGreen).SprintFunc()
View Source
var RED = color.New(color.FgRed).SprintFunc()
View Source
var WHITE = color.New(color.FgWhite).SprintFunc()
View Source
var YELLOW = color.New(color.FgYellow).SprintFunc()

Functions

func Log

func Log(v ...interface{})

func LogError

func LogError(v ...interface{})

func LogInfo

func LogInfo(v ...interface{})

func LogSuccess

func LogSuccess(v ...interface{})

func LogWarning

func LogWarning(v ...interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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