Skip to content

philippe-berto/logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logger

This package provides a wrapper around the logrus logging library, offering a structured logger with enhanced features for Go applications.

Features

  • Context Support: Integrates with Go's context.Context.
  • Structured Logging: Add custom fields to log entries for better traceability.
  • Multiple Log Levels: Supports Info, Warn, Error, Fatal, and Debug levels.
  • Flexible Formatting: Uses the joonix/log formatter for output.
  • Testability: Includes helpers for creating test loggers.

Usage

  • Create a new logger for production or testing.
  • Add contextual fields using the WithFields method.
  • Log messages at various levels with optional formatting.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages