mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 11:37:01 -07:00
Refactored, renamed, and reorganized code
This commit is contained in:
parent
589cc12962
commit
b504550d98
7 changed files with 71 additions and 36 deletions
|
|
@ -1,22 +0,0 @@
|
|||
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