Skip to content

Commit

Permalink
chore: move the logging module out of the internal package
Browse files Browse the repository at this point in the history
  • Loading branch information
panjf2000 committed Jul 10, 2021
1 parent 1bdd3aa commit d566061
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion eventloop_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ import (

gerrors "github.com/panjf2000/gnet/errors"
"github.com/panjf2000/gnet/internal/io"
"github.com/panjf2000/gnet/internal/logging"
"github.com/panjf2000/gnet/internal/netpoll"
"github.com/panjf2000/gnet/internal/socket"
"github.com/panjf2000/gnet/logging"
)

type eventloop struct {
Expand Down
5 changes: 2 additions & 3 deletions eventloop_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,9 @@ import (
"time"
"unsafe"

"github.com/panjf2000/gnet/internal/logging"
"github.com/panjf2000/gnet/pool/bytebuffer"

"github.com/panjf2000/gnet/errors"
"github.com/panjf2000/gnet/logging"
"github.com/panjf2000/gnet/pool/bytebuffer"
)

type eventloop struct {
Expand Down
2 changes: 1 addition & 1 deletion gnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (

"github.com/panjf2000/gnet/errors"
"github.com/panjf2000/gnet/internal"
"github.com/panjf2000/gnet/internal/logging"
"github.com/panjf2000/gnet/logging"
)

// Action is an action that occurs after the completion of an event.
Expand Down
2 changes: 1 addition & 1 deletion internal/netpoll/epoll.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ import (
"golang.org/x/sys/unix"

"github.com/panjf2000/gnet/errors"
"github.com/panjf2000/gnet/internal/logging"
"github.com/panjf2000/gnet/internal/netpoll/queue"
"github.com/panjf2000/gnet/logging"
)

// Poller represents a poller which is in charge of monitoring file-descriptors.
Expand Down
2 changes: 1 addition & 1 deletion internal/netpoll/kqueue.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ import (
"golang.org/x/sys/unix"

"github.com/panjf2000/gnet/errors"
"github.com/panjf2000/gnet/internal/logging"
"github.com/panjf2000/gnet/internal/netpoll/queue"
"github.com/panjf2000/gnet/logging"
)

// Poller represents a poller which is in charge of monitoring file-descriptors.
Expand Down
5 changes: 3 additions & 2 deletions listener_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@ import (
"sync"
"time"

"golang.org/x/sys/unix"

"github.com/panjf2000/gnet/errors"
"github.com/panjf2000/gnet/internal/logging"
"github.com/panjf2000/gnet/internal/netpoll"
"github.com/panjf2000/gnet/internal/socket"
"golang.org/x/sys/unix"
"github.com/panjf2000/gnet/logging"
)

type listener struct {
Expand Down
2 changes: 1 addition & 1 deletion listener_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ import (
"sync"

"github.com/panjf2000/gnet/errors"
"github.com/panjf2000/gnet/internal/logging"
"github.com/panjf2000/gnet/internal/netpoll"
"github.com/panjf2000/gnet/logging"
)

type listener struct {
Expand Down
File renamed without changes.
3 changes: 2 additions & 1 deletion options.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ package gnet
import (
"time"

"github.com/panjf2000/gnet/internal/logging"
"go.uber.org/zap/zapcore"

"github.com/panjf2000/gnet/logging"
)

// Option is a function that will set up option.
Expand Down

0 comments on commit d566061

Please sign in to comment.