// NewRedhat is constructor func newRedhat(c config.ServerInfo) *redhat { r := &redhat{} r.log = util.NewCustomLogger(c) r.setServerInfo(c) return r }
// NewBSD constructor func newBsd(c config.ServerInfo) *bsd { d := &bsd{} d.log = util.NewCustomLogger(c) return d }
// NewDebian is constructor func newDebian(c config.ServerInfo) *debian { d := &debian{} d.log = util.NewCustomLogger(c) d.setServerInfo(c) return d }
func getSSHLogger(log ...*logrus.Entry) *logrus.Entry { if len(log) == 0 { return util.NewCustomLogger(conf.ServerInfo{}) } return log[0] }