# Using static log provider

**Prerequisites**: install [abstractions module](https://vostok.gitbook.io/logging/modules/abstractions).

Abstractions module contains a static class named `LogProvider` which serves as a global shared source of `ILog` instance.

It's intended use case is logging in libraries: library authors may not want to force their users to provide an `ILog` instance each time they're using library classes. Instead, these classes could just obtain a log from `LogProvider`:

```csharp
LogProvider.Get().Info("library code message");
```

User application or underlying host may choose to explicitly configure `LogProvider` in order to enable this logging:

```csharp
LogProvider.Configure(new ConsoleLog());
```

By default, `Get` method returns an instance of [silent log](https://vostok.gitbook.io/logging/implementations/silent-log).


---

# 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/how-to-guides/using-static-log-provider.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.
