Skip to content

Commit

Permalink
Use shared logrus formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
louisroyer committed Sep 25, 2024
1 parent 665e6d9 commit a100559
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 79 deletions.
3 changes: 2 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
module github.com/nextmn/srv6-ctrl

go 1.22.1
go 1.22.7

require (
github.com/adrg/xdg v0.5.0
github.com/gin-gonic/gin v1.10.0
github.com/gofrs/uuid v4.4.0+incompatible
github.com/nextmn/go-pfcp-networking v0.0.36
github.com/nextmn/json-api v0.0.7
github.com/nextmn/logrus-formatter v0.0.1
github.com/sirupsen/logrus v1.9.3
github.com/urfave/cli/v2 v2.27.4
github.com/wmnsk/go-pfcp v0.0.24
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ github.com/nextmn/go-pfcp-networking v0.0.36 h1:eZjC+d61unz13E/qpggcas5xbudheSkN
github.com/nextmn/go-pfcp-networking v0.0.36/go.mod h1:KYoKLiltDmHL2YMU5mz2k/E1xMoz4TpmzTz6Nr5u5gA=
github.com/nextmn/json-api v0.0.7 h1:cM1DJhOTleeESDQIGn8Ahuo3szCW9YEiymbsng+aFws=
github.com/nextmn/json-api v0.0.7/go.mod h1:0py63IYCOBp1ZtLkMjNCNnOwbwhOmkh+ymJ0/OrxYx8=
github.com/nextmn/logrus-formatter v0.0.1 h1:Bsf78jjiEESc+rV8xE6IyKj4frDPGMwXFNrLQzm6A1E=
github.com/nextmn/logrus-formatter v0.0.1/go.mod h1:vdSZ+sIcSna8vjbXkSFxsnsKHqRwaUEed4JCPcXoGyM=
github.com/pelletier/go-toml/v2 v2.2.3 h1:YmeHyLY8mFWbdkNWwpr+qIL2bEqT0o95WSdkNHvL12M=
github.com/pelletier/go-toml/v2 v2.2.3/go.mod h1:MfCQTFTvCcUyyvvwm1+G6H/jORL20Xlb6rzQu9GuUkc=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
Expand Down
23 changes: 0 additions & 23 deletions internal/logger/hook.go

This file was deleted.

54 changes: 0 additions & 54 deletions internal/logger/logger.go

This file was deleted.

3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ import (
"os/signal"
"syscall"

"github.com/nextmn/logrus-formatter/logger"

"github.com/nextmn/srv6-ctrl/internal/app"
"github.com/nextmn/srv6-ctrl/internal/config"
"github.com/nextmn/srv6-ctrl/internal/logger"

"github.com/adrg/xdg"
"github.com/sirupsen/logrus"
Expand Down

0 comments on commit a100559

Please sign in to comment.