Open sillagiusti opened 1 year ago
This is actually my main issue as well at the moment, the log message needs to be a static[string]
which basically means any runtime string manipulation like formatted strings or reading strings from a variable (that is not const
) is not possible. (basically all log messages must be const
)
Yeah, it needs to be a const and the devel compiler gives the expected type mismatch errors.
Workaround:
import strformat
import chronicles
const a = 2
info static(fmt" a = {a}")
Hi, I'm trying to use info, debug, error, etc. templates, but if you use strformat on event parameter:
compiler says: