generated from thinkode/modelRepository
improved log system
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package hardware
|
||||
|
||||
import "github.com/rs/zerolog/log"
|
||||
|
||||
// MIDIPeripheral contains the data of a MIDI peripheral
|
||||
type MIDIPeripheral struct {
|
||||
name string // The name of the peripheral
|
||||
@@ -9,6 +11,7 @@ type MIDIPeripheral struct {
|
||||
|
||||
// NewMIDIPeripheral creates a new MIDI peripheral
|
||||
func NewMIDIPeripheral(name string, location int, serialNumber string) *MIDIPeripheral {
|
||||
log.Trace().Str("file", "MIDIPeripheral").Str("name", name).Str("s/n", serialNumber).Int("location", location).Msg("MIDI peripheral created")
|
||||
return &MIDIPeripheral{
|
||||
name: name,
|
||||
location: location,
|
||||
|
||||
Reference in New Issue
Block a user