Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dex
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
dex
Commits
aec2edb4
Unverified
Commit
aec2edb4
authored
Feb 22, 2019
by
Mark Sagi-Kazar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Match the interface to logrus implementation
parent
d1c8f8d0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
logger.go
pkg/log/logger.go
+2
-2
logrus.go
pkg/log/logrus.go
+4
-4
No files found.
pkg/log/logger.go
View file @
aec2edb4
...
...
@@ -6,8 +6,8 @@ package log
// Logger serves as an adapter interface for logger libraries
// so that dex does not depend on any of them directly.
type
Logger
interface
{
Info
(
msg
string
)
Warn
(
msg
string
)
Info
(
args
...
interface
{}
)
Warn
(
args
...
interface
{}
)
Debugf
(
format
string
,
args
...
interface
{})
Infof
(
format
string
,
args
...
interface
{})
...
...
pkg/log/logrus.go
View file @
aec2edb4
...
...
@@ -15,13 +15,13 @@ func NewLogrusLogger(logger logrus.FieldLogger) *LogrusLogger {
}
// Info logs an Info level event.
func
(
l
*
LogrusLogger
)
Info
(
msg
string
)
{
l
.
logger
.
Info
(
msg
)
func
(
l
*
LogrusLogger
)
Info
(
args
...
interface
{}
)
{
l
.
logger
.
Info
(
args
...
)
}
// Warn logs a Warn level event.
func
(
l
*
LogrusLogger
)
Warn
(
msg
string
)
{
l
.
logger
.
Warn
(
msg
)
func
(
l
*
LogrusLogger
)
Warn
(
args
...
interface
{}
)
{
l
.
logger
.
Warn
(
args
...
)
}
// Debugf formats and logs a Debug level event.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment