backy/pkg/logging/logging.go

23 lines
271 B
Go
Raw Normal View History

2022-10-13 17:03:36 +00:00
package logging
import (
"fmt"
"os"
"github.com/rs/zerolog"
)
2022-10-13 17:14:26 +00:00
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)
}