Skip to content

bocha-io/logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

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")

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages