File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change 2
2
package glg
3
3
4
4
import (
5
- "context"
6
5
"fmt"
7
6
"io"
8
7
"net/http"
@@ -17,12 +16,10 @@ import (
17
16
18
17
// Glg is glg base struct
19
18
type Glg struct {
20
- logger sync.Map // map[uint8]*logger
21
- timer * atomic.Value // []byte
19
+ logger sync.Map // map[uint8]*logger
22
20
levelCounter * uint32
23
21
levelMap sync.Map
24
22
buffer sync.Pool
25
- cancel context.CancelFunc
26
23
}
27
24
28
25
// MODE is logging mode (std only, writer only, std & writer)
@@ -235,12 +232,6 @@ func Get() *Glg {
235
232
return glg
236
233
}
237
234
238
- // Stop stops glg timer daemon
239
- func (g * Glg ) Stop () * Glg {
240
- g .cancel ()
241
- return g
242
- }
243
-
244
235
// SetMode sets glg logging mode
245
236
func (g * Glg ) SetMode (mode MODE ) * Glg {
246
237
g .logger .Range (func (key , val interface {}) bool {
You can’t perform that action at this time.
0 commit comments