error abstract method

void error(
  1. String line, [
  2. Exception? exception
])

Receives log messages at Error level and a related exception.

  • line The message to be logged.

  • exception An Exception instance related to the current log message.

Implementation

void error(String line, [ Exception? exception ]);