mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 11:37:01 -07:00
Refactored flags and added xnames to add endpoint to hms-smd
This commit is contained in:
parent
de07b119b5
commit
2edb9fdbb0
18 changed files with 270 additions and 175 deletions
26
internal/logger.go
Normal file
26
internal/logger.go
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
package magellan
|
||||
|
||||
import (
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
|
||||
type Logger struct {
|
||||
Log *logrus.Logger
|
||||
Path string
|
||||
}
|
||||
|
||||
|
||||
func NewLogger(l *logrus.Logger, level logrus.Level) *Logger {
|
||||
l.SetLevel(level)
|
||||
return &Logger{
|
||||
Log: logrus.New(),
|
||||
Path: "",
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
func (l *Logger)WriteFile(path string) {
|
||||
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue