Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 750 Bytes

README.md

File metadata and controls

32 lines (23 loc) · 750 Bytes

logger

A lightweight and thread-safe logger for Go based on log.c. This logger is designed to provide a simple yet powerful logging mechanism for Go applications, supporting multiple log levels and custom callbacks.

Installation

go get github.com/ayo-ajayi/logger

Usage

Import the package into your code:

import "github.com/ayo-ajayi/logger"
func main(){
    log := logger.NewLogger(logger.INFO, false)
    world:="world"
    log.Info("Hello %s", world)
}

License

This library is free software; you can redistribute it and/or modify it under the terms of the MIT license. See LICENSE for details.

Author