Go to file
Jeff Carr 1631c72f70 don't use STDERR anymore. also timestamps off by default
Signed-off-by: Jeff Carr <jcarr@wit.com>
2025-01-09 20:42:18 -06:00
.gitignore attempt at release automation 2024-01-30 16:05:42 -06:00
LICENSE This is a core GO language package 2024-01-14 10:43:35 -06:00
Makefile deprecate use of spew so package is a go primitive 2024-12-13 12:57:33 -06:00
README.md mirror output to stdout and http 2024-11-07 02:55:46 -06:00
VERSION toolkit load release 2024-01-27 12:13:05 -06:00
bool.go try allowing switching to writing to http 2024-11-07 01:23:43 -06:00
doc.go try allowing switching to writing to http 2024-11-07 01:23:43 -06:00
error.go try allowing switching to writing to http 2024-11-07 01:23:43 -06:00
flags.go don't use STDERR anymore. also timestamps off by default 2025-01-09 20:42:18 -06:00
info.go try allowing switching to writing to http 2024-11-07 01:23:43 -06:00
log.go try allowing switching to writing to http 2024-11-07 01:23:43 -06:00
original.go try allowing switching to writing to http 2024-11-07 01:23:43 -06:00
output.go try allowing switching to writing to http 2024-11-07 01:23:43 -06:00
reallog.go don't use STDERR anymore. also timestamps off by default 2025-01-09 20:42:18 -06:00
sleep.go try allowing switching to writing to http 2024-11-07 01:23:43 -06:00
verbose.go try allowing switching to writing to http 2024-11-07 01:23:43 -06:00
warn.go try allowing switching to writing to http 2024-11-07 01:23:43 -06:00

README.md

log

This is an attempt to modify the default golang 'log'. Because the 'gui' toolkit could be either ncurses or something like gtk, 'log' is an attempt to be smart about changing STDOUT on the fly.

  • add meaningful shortcuts like log.Info(), log.Warn(), log.Error() etc
  • add flags to enable & disable output on a per-gomodule basis
  • add http flag to switch stdout to http socket
  • compatible with changing import 'log' to import 'go.wit.com/log'
  • should also be compatible with changing import 'fmt' to import fmt 'go.wit.com/log'

Notes & Goals:

  • be a complete droplet replacement for golang 'log'
  • provide an example of how the stdlib 'log' could be changed