We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
SSHWIFTY_DEBUG
1 parent e54cdcb commit 43e2c37Copy full SHA for 43e2c37
application/log/writer_nodebug.go
@@ -41,10 +41,14 @@ func NewDebugOrNonDebugWriter(
41
if useDebug {
42
return NewWriter(context, w)
43
}
44
-
45
return NewNonDebugWriter(context, w)
46
47
+// Context build a new Sub context
48
+func (w NonDebugWriter) Context(name string) Logger {
49
+ return NewNonDebugWriter(w.c+" > "+name, w.w)
50
+}
51
+
52
// TitledContext build a new Sub context with specified formatted title
53
func (w NonDebugWriter) TitledContext(
54
name string,
0 commit comments