Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion gologshim/gologshim.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,19 @@
//
// Applications can optionally connect go-libp2p to go-log by calling SetDefaultHandler:
//
// import golog "github.com/ipfs/go-log/v2"
//
// func init() {
// gologshim.SetDefaultHandler(slog.Default().Handler())
// gologshim.SetDefaultHandler(golog.SlogHandler())
// }
//
// When integrated, go-libp2p logs use go-log's formatting and can be controlled
// programmatically via go-log's SetLogLevel("subsystem", "level") API to adjust
// log verbosity per subsystem at runtime without restarting.
//
// Note: SlogHandler() works even when GOLOG_CAPTURE_DEFAULT_SLOG=false, making
// it more reliable than using slog.Default().Handler().
//
// # Standalone Usage
//
// Without calling SetDefaultHandler, gologshim creates standalone slog handlers
Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": "v0.44.0"
"version": "v0.45.0"
}
Loading