<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "Tor",
  "identifier" : "/documentation/Tor/TorEvent/log(level:message:)",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Tor"
    ],
    "preciseIdentifier" : "s:3Tor0A5EventO3logyAcA0A8LogLevelO_SStcACmF"
  },
  "title" : "TorEvent.log(level:message:)"
}
-->

# TorEvent.log(level:message:)

A log line emitted by Tor at the specified severity.

```
case log(level: TorLogLevel, message: String)
```

## Parameters

`level`

Severity of the log line.

`message`

Tor-formatted message body. May include structured
`key=value` pairs that callers can parse ad hoc.

## Discussion

Corresponds to Tor’s `DEBUG`/`INFO`/`NOTICE`/`WARN`/`ERR` async
events (control-spec.txt §4.1.10). Subscription is controlled by
[`subscribe(to:)`](/documentation/Tor/TorControlClient/subscribe(to:)); by default swift-tor
subscribes only to `NOTICE` and higher unless otherwise requested.