Use sirupsen/logrus instead of abcum fork
This commit is contained in:
parent
3ea681ca34
commit
99ea0a3368
2 changed files with 4 additions and 3 deletions
|
@ -17,13 +17,14 @@ package log
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"os"
|
||||||
"runtime"
|
"runtime"
|
||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/abcum/logrus"
|
|
||||||
"github.com/mgutz/ansi"
|
"github.com/mgutz/ansi"
|
||||||
|
"github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
const clear = ansi.Reset
|
const clear = ansi.Reset
|
||||||
|
@ -35,7 +36,7 @@ var (
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
baseTimestamp = time.Now()
|
baseTimestamp = time.Now()
|
||||||
isTerminal = logrus.IsTerminal()
|
isTerminal = logrus.IsTerminal(os.Stdout)
|
||||||
}
|
}
|
||||||
|
|
||||||
func miniTS() int {
|
func miniTS() int {
|
||||||
|
|
|
@ -18,7 +18,7 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/abcum/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
var log *Logger
|
var log *Logger
|
||||||
|
|
Loading…
Reference in a new issue