Skip to content

KanakSasak/log4Go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

log4Go

log4Go is a lightweight logging library written in Go, designed to provide simple and effective logging capabilities for your Go applications.

Features

  • Easy Integration: Quickly integrate log4Go into your existing projects with minimal setup.
  • Customizable Logging Levels: Supports various logging levels such as INFO, WARN, ERROR, etc.
  • Formatted Output: Customize the log output format to suit your needs.
  • File and Console Logging: Supports logging to both files and the console.

Installation

To install log4Go, run:

go get github.com/KanakSasak/log4Go

Sample :

package main

import (
    "github.com/KanakSasak/log4Go"
)

func main() {
    logger := log4Go.NewLogger(log4Go.Info)

	logger.Log(log4Go.Info, "This is an info message")
	logger.Log(log4Go.Success, "This is a success message")
	logger.Log(log4Go.Error, "This is an error message")
	logger.Log(log4Go.Warning, "This is a warning message")
}

screenshot

About

This repository is a security research project demonstrating supply chain attack techniques in the Go ecosystem. It is designed for educational and defensive security purposes only.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages