File: batch2.go

package info (click to toggle)
golang-github-charmbracelet-log 0.4.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 384 kB
  • sloc: makefile: 3
file content (15 lines) | stat: -rw-r--r-- 350 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package main

import (
	"github.com/charmbracelet/log"
)

func main() {
	logger := log.Default().With("batch", 2, "chocolateChips", true)
	logger.SetPrefix("baking 🍪 ")
	logger.SetReportTimestamp(false)
	logger.SetReportCaller(false)
	logger.SetLevel(log.DebugLevel)
	logger.Debug("Preparing batch 2...")
	logger.Debug("Adding chocolate chips")
}