[internal/logging] add logging lib
This commit is contained in:
@@ -2,7 +2,6 @@ package actions
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
|
||||
"unknown.com/gokill/internal"
|
||||
)
|
||||
@@ -13,12 +12,12 @@ type Printer struct {
|
||||
}
|
||||
|
||||
func (p Printer) Execute() {
|
||||
fmt.Printf("Print action fires. Message: %s\n", p.Message)
|
||||
internal.LogDoc(p).Infof("Print action fires. Message: %s", p.Message)
|
||||
p.ActionChan <- nil
|
||||
}
|
||||
|
||||
func (p Printer) DryExecute() {
|
||||
fmt.Printf("Print action fire test. Message: %s\n", p.Message)
|
||||
internal.LogDoc(p).Infof("Print action fire test. Message: %s", p.Message)
|
||||
p.ActionChan <- nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user