Skip to content

Commit 992d409

Browse files
committed
style(logger): add code doc strings
1 parent 26761df commit 992d409

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

logger/syslog/message.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"strings"
66
)
77

8+
// SyslogMessage is a textual system log message.
89
type SyslogMessage interface {
910
fmt.Stringer
1011
}

logger/syslogd/syslogd.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ func (h *handler) mainLoop() {
9090
h.End()
9191
}
9292

93+
// Listen starts a new syslog server which runs until it receives a signal.
9394
func Listen(signalChan chan os.Signal, cleanupDone chan bool) {
9495
fmt.Println("Starting syslog...")
9596
// Create a server with one handler and run one listen gorutine

0 commit comments

Comments
 (0)