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:
5
main.go
5
main.go
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user