log method

void log(
  1. String message, [
  2. Object? error
])

Logs a message, and an optional error.

Implementation

void log(String message, [Object? error]) {
  if (_isLogsEnabled) {
    dev.log(
      message,
      name: "Nostr${error != null ? "Error" : ""}",
      error: error,
    );
  }
}