# Log interface

Every log in Vostok.Logging implements [ILog](https://github.com/vostok/logging.abstractions/blob/master/Vostok.Logging.Abstractions/ILog.cs) interface. This interface exposes three methods:

| Method                   | Description                                                                                                                                                                                                         |
| ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Log(LogEvent)`          | Logs given [log event](/logging/concepts/log-events.md). This method is rarely invoked directly: it's preferable to use [logging extensions](/logging/concepts/syntax/logging-extensions.md).                       |
| `IsEnabledFor(LogLevel)` | Returns whether the current log is configured to record events of given level. This method is used in [logging extensions](/logging/concepts/syntax/logging-extensions.md) to avoid unnecessary `Log` method calls. |
| `ForContext(string)`     | Returns a copy of the current log operating in given [source context](/logging/concepts/source-context.md).                                                                                                         |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://vostok.gitbook.io/logging/concepts/log-interface.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
