Exemplo n.º 1
0
func Print(log logger.LogInstance, packageName string, fileName string, lineNumber int, funcName string, time time.Time) {
	if log.LoggerInit.PrinterType == "console" {
		console.ConsolePrinter(log, packageName, fileName, lineNumber, funcName, time)
	} else if log.LoggerInit.PrinterType == "file" {
		file.FilePrinter(log, packageName, fileName, lineNumber, funcName, time)
	} else if log.LoggerInit.PrinterType == "es" {
		es.ESPrinter(log, packageName, fileName, lineNumber, funcName, time)
	}
}
Exemplo n.º 2
0
func Print(logType string, message string, fileName string, lineNumber int) {
	console.ConsolePrinter(logType, message, fileName, lineNumber)
}
Exemplo n.º 3
0
func logPrint(log logInstance, fileName string, lineNumber int) {
	fileName = parseFileName(fileName)
	console.ConsolePrinter(log.logType, log.message, fileName, lineNumber)
}