Categorygithub.com/bocha-io/logger
modulepackage
0.0.0-20230722133508-fbef5d720b58
Repository: https://github.com/bocha-io/logger.git
Documentation: pkg.go.dev

# README

Logger

Simple helper to reuse the log-to-file function in the rest of our libs.

Usage

  • Init the logger in your main function
import (
    "github.com/bocha-io/logger"
)
...

// Log to file
file := logger.LogToFile("indexerlogs.txt")
defer file.Close()
  • Call the logger from any file
logger.LogInfo("hello from log")

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
Call `defer logFile.Close()` after this function.
No description provided by the author