Categorygithub.com/mo-taufiq/go-logger
modulepackage
1.1.1
Repository: https://github.com/mo-taufiq/go-logger.git
Documentation: pkg.go.dev

# README

go-logger

Installation

go get github.com/mo-taufiq/go-logger

Quickstart

package main

import (
	gologger "github.com/mo-taufiq/go-logger"
)

func main() {
	gologger.LogConf.TimeZone = "Asia/Jakarta"
	gologger.LogConf.TimeFormat = "2006-01-02T15:04:05-0700"
	gologger.LogConf.CreateLogFile = true
	gologger.LogConf.Path = "./logs"
	gologger.LogConf.DebugMode = true
	gologger.LogConf.NestedLocationLevel = 1
	gologger.LogConf.LogFuncName = true
	gologger.LogConf.NestedFuncLevel = 1
	gologger.LogConf.RuntimeCallerSkip = 2

	gologger.Info("log info")
	gologger.Warning("log warning")
	gologger.Error("log error")
}

Preview

Preview go-logger

# 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

# Variables

Default config.

# Structs

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