Skip to content

Commit

Permalink
Removing %OC
Browse files Browse the repository at this point in the history
  • Loading branch information
Sri-Nikitha-K committed Dec 14, 2022
1 parent ec088b4 commit fe4286e
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions services/logger/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func (logger *Logger) Startup() {

// capture startup time
logger.launchTime = time.Now()

fmt.Printf(logger.config.FileLocation)
// create the map and load the Log configuration
data := logger.config.LoadConfigFromFile()
if data != nil {
Expand Down Expand Up @@ -239,58 +239,58 @@ func (logger *Logger) Trace(format string, args ...interface{}) {
}

// OCTrace is called for overseer messages
func (logger *Logger) OCTrace(format string, para1 string, para2 int64, args ...interface{}) {
newOcname := Ocname{para1, para2}
func (logger *Logger) OCTrace(format string, name string, limit int64, args ...interface{}) {
newOcname := Ocname{name, limit}
logger.logMessage(LogLevelTrace, format, newOcname, args...)
}

func OCTrace(format string, para1 string, para2 int64, args ...interface{}) {
func OCTrace(format string, name string, limit int64, args ...interface{}) {
currentLogger := GetLoggerInstance()
currentLogger.OCTrace(format, para1, para2, args)
currentLogger.OCTrace(format, name, limit, args)
}

// OCWarn is called for overseer warn messages
func (logger *Logger) OCWarn(format string, para1 string, para2 int64, args ...interface{}) {
newOcname := Ocname{para1, para2}
func (logger *Logger) OCWarn(format string, name string, limit int64, args ...interface{}) {
newOcname := Ocname{name, limit}
logger.logMessage(LogLevelTrace, format, newOcname, args...)
}

func OCWarn(format string, para1 string, para2 int64, args ...interface{}) {
func OCWarn(format string, name string, limit int64, args ...interface{}) {
currentLogger := GetLoggerInstance()
currentLogger.OCWarn(format, para1, para2, args)
currentLogger.OCWarn(format, name, limit, args)
}

// OCDebug is called for overseer warn messages
func (logger *Logger) OCDebug(format string, para1 string, para2 int64, args ...interface{}) {
newOcname := Ocname{para1, para2}
func (logger *Logger) OCDebug(format string, name string, limit int64, args ...interface{}) {
newOcname := Ocname{name, limit}
logger.logMessage(LogLevelTrace, format, newOcname, args...)
}

func OCDebug(format string, para1 string, para2 int64, args ...interface{}) {
func OCDebug(format string, name string, limit int64, args ...interface{}) {
currentLogger := GetLoggerInstance()
currentLogger.OCDebug(format, para1, para2, args)
currentLogger.OCDebug(format, name, limit, args)
}

// OCErr is called for overseer err messages
func (logger *Logger) OCErr(format string, para1 string, para2 int64, args ...interface{}) {
newOcname := Ocname{para1, para2}
func (logger *Logger) OCErr(format string, name string, limit int64, args ...interface{}) {
newOcname := Ocname{name, limit}
logger.logMessage(LogLevelTrace, format, newOcname, args...)
}

func OCErr(format string, para1 string, para2 int64, args ...interface{}) {
func OCErr(format string, name string, limit int64, args ...interface{}) {
currentLogger := GetLoggerInstance()
currentLogger.OCErr(format, para1, para2, args)
currentLogger.OCErr(format, name, limit, args)
}

// OCCrit is called for overseer crit messages
func (logger *Logger) OCCrit(format string, para1 string, para2 int64, args ...interface{}) {
newOcname := Ocname{para1, para2}
func (logger *Logger) OCCrit(format string, name string, limit int64, args ...interface{}) {
newOcname := Ocname{name, limit}
logger.logMessage(LogLevelTrace, format, newOcname, args...)
}

func OCCrit(format string, para1 string, para2 int64, args ...interface{}) {
func OCCrit(format string, name string, limit int64, args ...interface{}) {
currentLogger := GetLoggerInstance()
currentLogger.OCCrit(format, para1, para2, args)
currentLogger.OCCrit(format, name, limit, args)
}

// OCWarn is called for overseer warn messages
Expand Down

0 comments on commit fe4286e

Please sign in to comment.