Changed Logging usage
This commit is contained in:
parent
03294a5e77
commit
30dde32218
1 changed files with 4 additions and 3 deletions
|
|
@ -5,13 +5,14 @@ import (
|
||||||
"lpm-cli/Commands"
|
"lpm-cli/Commands"
|
||||||
"lpm-cli/Informations"
|
"lpm-cli/Informations"
|
||||||
"lpm-cli/Tools"
|
"lpm-cli/Tools"
|
||||||
|
. "lpm-cli/logging"
|
||||||
"os"
|
"os"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
Tools.LoggerInit()
|
Logger.Init()
|
||||||
|
|
||||||
Tools.InfoLogger.Printf("Lotus-PM was executed")
|
Logger.Info("Lotus-PM was executed")
|
||||||
app := &cli.App {
|
app := &cli.App {
|
||||||
Name: "lotus-pm",
|
Name: "lotus-pm",
|
||||||
Usage: "Lotus Package Manager",
|
Usage: "Lotus Package Manager",
|
||||||
|
|
@ -27,6 +28,6 @@ func main() {
|
||||||
|
|
||||||
err := app.Run(os.Args)
|
err := app.Run(os.Args)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
Tools.ErrorLogger.Fatal(err)
|
Logger.Fatal(err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in a new issue