Skip to content
github-actions[bot] edited this page Dec 29, 2025 · 5 revisions

logger

import "github.com/AarC10/GSW-V2/lib/logger"

Index

func Debug

func Debug(message string, fields ...zap.Field)

Debug logs a debug message

func Error

func Error(message string, fields ...zap.Field)

Error logs an error message

func Fatal

func Fatal(message string, fields ...zap.Field)

Fatal logs a fatal message

func Info

func Info(message string, fields ...zap.Field)

Info logs an info message

func InitLogger

func InitLogger()

InitLogger Initializes the logger Configured using the logger.yaml file in the data/config directory If the file is not found, the logger will default to a development logger

func Log

func Log() *zap.Logger

Log retrieves the underlying zap logger

func Panic

func Panic(message string, fields ...zap.Field)

Panic logs a panic message

func Warn

func Warn(message string, fields ...zap.Field)

Warn logs a warning message

Generated by gomarkdoc

Clone this wiki locally