Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kpango committed Nov 13, 2018
1 parent 58141bc commit 4b00dac
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions glg.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
package glg

import (
"context"
"fmt"
"io"
"net/http"
Expand All @@ -17,12 +16,10 @@ import (

// Glg is glg base struct
type Glg struct {
logger sync.Map // map[uint8]*logger
timer *atomic.Value // []byte
logger sync.Map // map[uint8]*logger
levelCounter *uint32
levelMap sync.Map
buffer sync.Pool
cancel context.CancelFunc
}

// MODE is logging mode (std only, writer only, std & writer)
Expand Down Expand Up @@ -235,12 +232,6 @@ func Get() *Glg {
return glg
}

// Stop stops glg timer daemon
func (g *Glg) Stop() *Glg {
g.cancel()
return g
}

// SetMode sets glg logging mode
func (g *Glg) SetMode(mode MODE) *Glg {
g.logger.Range(func(key, val interface{}) bool {
Expand Down

0 comments on commit 4b00dac

Please sign in to comment.