logging

package
v0.1.20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() (*zap.Logger, error)

New creates a logger based on SAMVERK_ENV.

  • "development" or "dev": colorized console output, debug level
  • anything else (including unset): structured JSON, info level

func NewWithTee added in v0.1.16

func NewWithTee(ls *logstore.LogStore) (*zap.Logger, error)

NewWithTee creates a logger that writes to both stdout and a SQLite log store. In production mode, a single JSON core tees through the logstore syncer. In dev mode, a console core writes to stdout and a separate JSON core writes to the logstore syncer.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL