Debug connecting to the LDAP server

This commit is contained in:
Gregory Wells
2026-03-24 18:08:36 -04:00
parent 5aa2ce47c7
commit d62e1f7b8f
2 changed files with 36 additions and 2 deletions

View File

@@ -1,6 +1,9 @@
package logging
import "log"
import (
"fmt"
"log"
)
type EventType int
@@ -16,6 +19,30 @@ func Infof(message string, vars ...any) {
log.Printf(message, vars...)
}
func Debug(message string) {
log.Printf("Warn: %s", message)
}
func Debugf(message string, v ...any) {
log.Printf("Warn: %s", fmt.Sprintf(message, v...))
}
func Warn(message string) {
log.Printf("Warn: %s", message)
}
func Warnf(message string, v ...any) {
log.Printf("Warn: %s", fmt.Sprintf(message, v...))
}
func Error(message string) {
log.Printf("Error: %s", message)
}
func Errorf(message string, v ...any) {
log.Printf("Error: %s", fmt.Sprintf(message, v...))
}
func Fatal(message string) {
log.Fatal(message)
}