panic(`Can not read the project name file 'project.name': `+errRead.Error())
}else{
projectName=string(projectNameBytes)
projectName=strings.TrimSpace(projectName)
}
}
}
funcinit(){
readProjectName()
mutexDeviceDelays=sync.Mutex{}
mutexPreChannelBuffer=sync.Mutex{}
mutexChannel=sync.RWMutex{}
preChannelBuffer=list.New()
deviceDelayBuffer=list.New()
devices=list.New()
initTimer()
initCode()
}
funcinitCode(){
entriesBuffer=make(chanMeta.Entry,logBufferSize)
LogShort(senderName,Meta.CategorySYSTEM,Meta.LevelINFO,`Starting`,`The logger is now starting.`,`logBufferSize=`+strconv.Itoa(int(logBufferSize)),`logBufferTimeoutSeconds=`+strconv.Itoa(int(logBufferTimeoutSeconds)))