We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86a0863 commit c426ae3Copy full SHA for c426ae3
default.go
@@ -138,6 +138,12 @@ func SetPattern(pattern string) error {
138
return std.SetPattern(pattern)
139
}
140
141
+// IsBufferEmpty returns true if logger buffer is empty otherwise false.
142
+// This method can be used to ensure all the log entry is written successfully.
143
+func IsBufferEmpty() bool {
144
+ return std.IsBufferEmpty()
145
+}
146
+
147
func init() {
148
cfg, _ := config.ParseString("log { }")
149
std, _ = New(cfg)
0 commit comments