1
0
mirror of https://github.com/taigrr/log-socket synced 2026-03-20 19:32:25 -07:00

Revert "add ability to embed other loggers of varying functionality"

This reverts commit 50c507c8f4.
This commit is contained in:
2023-03-29 14:06:00 -07:00
parent 50c507c8f4
commit 0fa4de7961
5 changed files with 4 additions and 289 deletions

View File

@@ -2,7 +2,6 @@ package main
import (
"flag"
"log"
"net/http"
"time"
@@ -30,9 +29,5 @@ func main() {
http.HandleFunc("/ws", ws.LogSocketHandler)
http.HandleFunc("/", browser.LogSocketViewHandler)
go generateLogs()
dLogger := log.Default()
lsLogger := logger.Default()
lsLogger.SubLoggers = append(lsLogger.SubLoggers, logger.EnrichLogger(dLogger))
lsLogger.Println("This should be printed out twice!")
logger.Fatal(http.ListenAndServe(*addr, nil))
}