feat: file logger
This commit is contained in:
		| @@ -8,6 +8,8 @@ import ( | ||||
| 	"text/tabwriter" | ||||
| 	"time" | ||||
|  | ||||
| 	"git.cryptic.systems/fh-trier/go-flucky/pkg/logger" | ||||
|  | ||||
| 	"git.cryptic.systems/fh-trier/go-flucky/pkg/sensor" | ||||
|  | ||||
| 	"git.cryptic.systems/fh-trier/go-flucky/pkg/types" | ||||
| @@ -16,9 +18,10 @@ import ( | ||||
|  | ||||
| // FluckyConfig dasd | ||||
| type FluckyConfig struct { | ||||
| 	Device  *types.Device   `json:"device"` | ||||
| 	Sensors []*types.Sensor `json:"sensors"` | ||||
| 	Device *types.Device `json:"device"` | ||||
| 	*logger.FileLogger | ||||
| 	Remotes []*Remote       `json:"remotes"` | ||||
| 	Sensors []*types.Sensor `json:"sensors"` | ||||
| } | ||||
|  | ||||
| // AddSensor add a new sensor | ||||
|   | ||||
		Reference in New Issue
	
	Block a user