Skip to content

Commit

Permalink
Added info methods
Browse files Browse the repository at this point in the history
  • Loading branch information
sdpsagarpawar committed Jun 26, 2023
1 parent 02c485a commit 3bd0737
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions log.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,6 @@ func (logger *Logger) Debugln(values ...interface{}) {
logger.debugLogger.Println(values...)
}

// Info prints an info message
func (logger *Logger) Info(values ...interface{}) {
logger.infoLogger.Println(values...)
}

// Warning prints a warning message
func (logger *Logger) Warning(values ...interface{}) {
logger.warningLogger.Println(values...)
Expand Down Expand Up @@ -143,3 +138,18 @@ func (logger *Logger) Panicf(format string, values ...interface{}) {
func (logger *Logger) Panicln(values ...interface{}) {
logger.errorLogger.Panicln(values...)
}

// Info prints an info message
func (logger *Logger) Info(values ...interface{}) {
logger.infoLogger.Println(values...)
}

// Infof prints a formatted info message
func (logger *Logger) Infof(format string, values ...interface{}) {
logger.infoLogger.Printf(format, values...)
}

// Infoln prints an info message with a newline character
func (logger *Logger) Infoln(values ...interface{}) {
logger.infoLogger.Println(values...)
}

0 comments on commit 3bd0737

Please sign in to comment.