1
0
mirror of https://github.com/taigrr/log-socket synced 2025-01-18 04:53:14 -08:00

Adds logger directory refactor

This commit is contained in:
Tai Groot 2021-04-08 21:20:57 -07:00
parent 537840de8b
commit 159e6a4d3a
Signed by: taigrr
GPG Key ID: D00C269A87614812
5 changed files with 8 additions and 17 deletions

4
go.mod
View File

@ -1,5 +1,5 @@
module bitbucket.org/cellg/lambo-log-socket
module github.com/taigrr/log-socket
go 1.16
require github.com/sirupsen/logrus v1.8.1
require github.com/gorilla/websocket v1.4.2

12
go.sum
View File

@ -1,10 +1,2 @@
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/sirupsen/logrus v1.8.1 h1:dJKuHgqk1NNQlqoA6BTlM1Wf9DOH3NBjQyu0h9+AZZE=
github.com/sirupsen/logrus v1.8.1/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0=
github.com/stretchr/testify v1.2.2 h1:bSDNvY7ZPG5RlJ8otE/7V6gMiyenm9RtJ7IUVIAoJ1w=
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
golang.org/x/sys v0.0.0-20191026070338-33540a1f6037 h1:YyJpGZS1sBuBCzLAR1VEpK193GlqGZbnPFnPV/5Rsb4=
golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
github.com/gorilla/websocket v1.4.2 h1:+/TMaTYc4QFitKJxsQ7Yye35DkWvkdLcvGKqM+x0Ufc=
github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=

View File

@ -1,4 +1,4 @@
package lambo_log_socket
package logger
import (
"errors"
@ -10,8 +10,6 @@ import (
"time"
)
type Level int
const (
LTrace Level = iota
LDebug

View File

@ -1,4 +1,4 @@
package lambo_log_socket
package logger
import (
"strconv"

View File

@ -1,8 +1,9 @@
package lambo_log_socket
package logger
import "time"
type LogWriter chan Entry
type Level int
type Client struct {
LogLevel Level `json:"level"`