mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 12:24:38 +03:00
switch to slog.Logger for logging, for easier reuse of packages by external software
we don't want external software to include internal details like mlog. slog.Logger is/will be the standard. we still have mlog for its helper functions, and its handler that logs in concise logfmt used by mox. packages that are not meant for reuse still pass around mlog.Log for convenience. we use golang.org/x/exp/slog because we also support the previous Go toolchain version. with the next Go release, we'll switch to the builtin slog.
This commit is contained in:
@ -17,7 +17,7 @@ func tcheckf(t *testing.T, err error, format string, args ...any) {
|
||||
}
|
||||
|
||||
func TestLinkOrCopy(t *testing.T) {
|
||||
log := mlog.New("linkorcopy")
|
||||
log := mlog.New("linkorcopy", nil)
|
||||
|
||||
// link in same directory. file exists error. link to file in non-existent
|
||||
// directory (exists error). link to file in system temp dir (hopefully other file
|
||||
|
Reference in New Issue
Block a user