Skip to content

gLogger is a flexible and extensible logging library for Go applications.

Notifications You must be signed in to change notification settings

mjedari/glogger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gLogger

gLogger is a flexible and extensible logging library for Go applications. It supports various log levels and allows you to subscribe services like Sentry, Logstash, or any other service as a subscriber. When you log an error or other messages, gLogger sends the data to all subscribed services based on the log level.

Install

go get github.com/mjedari/glogger@latest

Usage

package main

import (
    "github.com/mjedari/glogger"
)

func main() {
	// set production or development
	glogger.SetConfig(glogger.Config{Production: configs.Config.IsProduction()})
	
	
}

Features

Subscriber System:

Allows you to subscribe external services (e.g., Sentry, Logstash) to receive log data.

Log levels:

Supports different log levels (Debug, Info, Warn, Error, Fatal).

Contributing to gLogger

To contribute please have a look at to CONTRIBUTION.md.

About

gLogger is a flexible and extensible logging library for Go applications.

Topics

Resources

Stars

Watchers

Forks

Languages