LogFunc: ((level: LogLevel, msg?: any) => void)

Function that logs a message. Can be one of the existing ones or your own function. Is intended to be easy to integrate with any logging library.