AUTH-1943: Adds session logging

This commit is contained in:
Austin Cherry
2019-08-26 15:25:24 -05:00
parent f41121f4e5
commit 5e85a8bd16
5 changed files with 209 additions and 9 deletions

23
sshlog/manager.go Normal file
View File

@@ -0,0 +1,23 @@
package sshlog
import (
"io"
"github.com/sirupsen/logrus"
)
// Manager be managing logs bruh
type Manager interface {
NewLogger(string, *logrus.Logger) (io.WriteCloser, error)
}
type manager struct{}
// New creates a new instance of a log manager
func New() Manager {
return &manager{}
}
func (m *manager) NewLogger(name string, logger *logrus.Logger) (io.WriteCloser, error) {
return NewLogger(name, logger)
}