Skip to content

Commit

Permalink
modify
Browse files Browse the repository at this point in the history
  • Loading branch information
npumaster committed May 4, 2023
1 parent 7c228dd commit eceb45e
Show file tree
Hide file tree
Showing 20 changed files with 23 additions and 740 deletions.
692 changes: 0 additions & 692 deletions README.md

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion common.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ const (
// eg: "github.com/gookit/slog_test,logger_test.go:48"
CallerFlagPkgFnl
// CallerFlagFpLine report full filepath with line.
// eg: "/work/go/gookit/slog/logger_test.go:48"
CallerFlagFpLine
// CallerFlagFnLine report filename with line.
// eg: "logger_test.go:48"
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/gookit/slog
module github.com/dounetio/slog

go 1.18

Expand Down
4 changes: 2 additions & 2 deletions handler/buffer.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"io"
"os"

"github.com/gookit/slog"
"github.com/gookit/slog/bufwrite"
"github.com/dounetio/slog"
"github.com/dounetio/slog/bufwrite"
)

// NewBuffered create new BufferedHandler
Expand Down
4 changes: 2 additions & 2 deletions handler/buffer_wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package handler
import (
"io"

"github.com/gookit/slog"
"github.com/gookit/slog/bufwrite"
"github.com/dounetio/slog"
"github.com/dounetio/slog/bufwrite"
)

// FormatterWriterHandler interface
Expand Down
4 changes: 2 additions & 2 deletions handler/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package handler
import (
"io"

"github.com/gookit/slog"
"github.com/gookit/slog/rotatefile"
"github.com/dounetio/slog"
"github.com/dounetio/slog/rotatefile"
)

//
Expand Down
6 changes: 3 additions & 3 deletions handler/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package handler
import (
"io"

"github.com/dounetio/slog"
"github.com/dounetio/slog/bufwrite"
"github.com/dounetio/slog/rotatefile"
"github.com/gookit/goutil/errorx"
"github.com/gookit/goutil/fsutil"
"github.com/gookit/slog"
"github.com/gookit/slog/bufwrite"
"github.com/gookit/slog/rotatefile"
)

// the buff mode consts
Expand Down
2 changes: 1 addition & 1 deletion handler/console.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package handler
import (
"os"

"github.com/dounetio/slog"
"github.com/gookit/color"
"github.com/gookit/slog"
)

/********************************************************************************
Expand Down
2 changes: 1 addition & 1 deletion handler/email.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"net/smtp"
"strconv"

"github.com/gookit/slog"
"github.com/dounetio/slog"
)

// EmailOption struct
Expand Down
2 changes: 1 addition & 1 deletion handler/file.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package handler

import (
"github.com/gookit/slog"
"github.com/dounetio/slog"
)

// MustFileHandler create file handler
Expand Down
2 changes: 1 addition & 1 deletion handler/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"os"
"sync"

"github.com/dounetio/slog"
"github.com/gookit/goutil/fsutil"
"github.com/gookit/slog"
)

// DefaultBufferSize sizes the buffer associated with each log file. It's large
Expand Down
4 changes: 2 additions & 2 deletions handler/rotate_file.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package handler

import (
"github.com/gookit/slog"
"github.com/gookit/slog/rotatefile"
"github.com/dounetio/slog"
"github.com/dounetio/slog/rotatefile"
)

// MustRotateFile handler instance
Expand Down
2 changes: 1 addition & 1 deletion handler/simple.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package handler
import (
"io"

"github.com/gookit/slog"
"github.com/dounetio/slog"
)

// SimpleHandler definition
Expand Down
2 changes: 1 addition & 1 deletion handler/syslog.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package handler
import (
"log/syslog"

"github.com/gookit/slog"
"github.com/dounetio/slog"
)

// SysLogHandler struct
Expand Down
2 changes: 1 addition & 1 deletion handler/write_close_flusher.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package handler

import (
"github.com/gookit/slog"
"github.com/dounetio/slog"
)

// FlushCloseHandler definition
Expand Down
2 changes: 1 addition & 1 deletion handler/write_close_syncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package handler
import (
"io"

"github.com/gookit/slog"
"github.com/dounetio/slog"
)

// SyncCloseHandler definition
Expand Down
2 changes: 1 addition & 1 deletion handler/write_closer.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package handler
import (
"io"

"github.com/gookit/slog"
"github.com/dounetio/slog"
)

// WriteCloserHandler definition
Expand Down
2 changes: 1 addition & 1 deletion handler/writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package handler
import (
"io"

"github.com/gookit/slog"
"github.com/dounetio/slog"
)

// IOWriterHandler definition
Expand Down
2 changes: 1 addition & 1 deletion rotatefile/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ package main
import (
"log"

"github.com/gookit/slog/rotatefile"
"github.com/dounetio/slog/rotatefile"
)

func main() {
Expand Down
24 changes: 0 additions & 24 deletions slog.go
Original file line number Diff line number Diff line change
@@ -1,27 +1,3 @@
/*
Package slog Lightweight, extensible, configurable logging library written in Go.
Source code and other details for the project are available at GitHub:
https://github.com/gookit/slog
Quick usage:
package main
import (
"github.com/gookit/slog"
)
func main() {
slog.Info("info log message")
slog.Warn("warning log message")
slog.Infof("info log %s", "message")
slog.Debugf("debug %s", "message")
}
More usage please see README.
*/
package slog

import (
Expand Down

0 comments on commit eceb45e

Please sign in to comment.