consoleDiagnostic

fun consoleDiagnostic(logger: KLogger, message: () -> String)(source)

Emits a failure diagnostic. The message is always logged at ERROR via the supplied logger and, unless consoleAdvisoriesOption is false, is also printed to standard error.

Use this only when the diagnostic context is not carried by a thrown exception (e.g. the simulation state surrounding a failed event) and would otherwise be invisible to users who never look at log files.

Parameters

logger

the logger that records the diagnostic at ERROR

message

the diagnostic message