Andrew
e2f4553303
- Added backup sub-command - Added better parsing for config file - Basis for notifications, no running after a command yet - Updated docs and added License
23 lines
271 B
Go
23 lines
271 B
Go
package logging
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"github.com/rs/zerolog"
|
|
)
|
|
|
|
type Logging struct {
|
|
Err error
|
|
Output string
|
|
}
|
|
|
|
type Logfile struct {
|
|
LogfilePath string
|
|
}
|
|
|
|
func ExitWithMSG(msg string, code int, log *zerolog.Logger) {
|
|
fmt.Printf("%s\n", msg)
|
|
os.Exit(code)
|
|
}
|