codenotary / immudb

immudb - immutable database based on zero trust, SQL/Key-Value/Document model, tamperproof, data change history
https://immudb.io
Other
8.54k stars 341 forks source link

Logger customization #1272

Closed hajsf closed 4 months ago

hajsf commented 2 years ago

An option to customize the lover could be required.

A "Debug" option to show/hide the debug info from the terminal at Key-value embeded database (and whereever possible) is needed.

byo commented 2 years ago

On the embedded level it's possible to change the logger with store options: https://pkg.go.dev/github.com/codenotary/immudb@v1.3.1/embedded/store#Options.WithLogger.

By default the verbosity of the immudb standalone server can be changed using LOG_LEVEL environment variable (see https://github.com/codenotary/immudb/blob/master/pkg/logger/logger.go#L44)