Socket
Book a DemoInstallSign in
Socket

github.com/rafaelb13/logger

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/rafaelb13/logger

v0.1.0
Source
Go
Version published
Created
Source

Logger

The logger package provides a simple and colorful solution for logging in Go applications. It is designed to be easy to use and offers formatted messages for different log levels.

Installation

Use the following command to install the logger package:

go get -u github.com/rafaelb13/logger

Usage

package main

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

func main() {
	// Example of how to use the logger
	log := logger.NewLogger("parameter")
	log.Debug("Debug message")
	log.Info("Information message")
	log.Warn("Warning message")
	log.Error("Error message")
}

Contribution

If you want to contribute, please follow these steps:

  • Fork the repository
  • Create a branch for your feature (git checkout -b feature/YourFeature)
  • Commit your changes (git commit -m 'Adding awesome feature')
  • Push to the branch (git push origin feature/YourFeature)
  • Open a pull request

Contribution

If you want to contribute, please follow these steps:

  • Fork the repository
  • Create a branch for your feature (git checkout -b feature/YourFeature)
  • Commit your changes (git commit -m 'Adding awesome feature')
  • Push to the branch (git push origin feature/YourFeature)
  • Open a pull request

Version

1.21.3

FAQs

Package last updated on 05 Dec 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.