lumber icon indicating copy to clipboard operation
lumber copied to clipboard

A simple logger for Go

Results 9 lumber issues
Sort by recently updated
recently updated
newest added

this will allow the interface to be implemented and used externally

Not sure if this is a standard everywhere, but from a logger what I would define as expected usage is that: - Any messages below the logger level will not...

Hello, Just wondering if this library is thread-safe? It probably could be mentioned in the readme.

Add some way to add a prefix to log lines. The idea is to know which package a log came from (like python's `logging.getLogger`).

Hey, Currently it seems the library only does log rotation based on line count. Log rotation based on time would be a really useful feature however. For example if logs...

Calling log.Close() more than once will cause a panic with: ``` runtime error: close of closed channel ``` The close method should be safe to call multiple times.

bug

Hi I like your Logger, but what I do not understand is, why you didn't put an os.exit(1) when logging Fatal like the standard go logger? Maybe it would also...

It would be nice to have log levels start at 1 and have the default log level be 0. The meaning of the default log level could be user-configurable (e.g....