Skip to content

Instantly share code, notes, and snippets.

View panta's full-sized avatar

Marco Pantaleoni panta

  • /*jupiter jazz*/
  • Padova
View GitHub Profile
@panta
panta / logging.go
Last active May 27, 2025 21:01
zerolog with file log rotation (lumberjack) and console output
package logging
import (
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
"gopkg.in/natefinch/lumberjack.v2"
"os"
"path"
"io"
)

Keybase proof

I hereby claim:

  • I am panta on github.
  • I am panta (https://keybase.io/panta) on keybase.
  • I have a public key ASDUiEThogcBU_9EUVhqmG6v2v8lDrUxi6qip7lYAPxHSAo

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am panta on github.
* I am mpanta (https://keybase.io/mpanta) on keybase.
* I have a public key ASBlrf84tM1kT1bX3d-dotvBNsZVtnDisa19ZqcHpJgeAAo
To claim this, I am signing this object: