> For the complete documentation index, see [llms.txt](https://vostok.gitbook.io/logging/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://vostok.gitbook.io/logging/how-to-guides/using-static-log-provider.md).

# Using static log provider

**Prerequisites**: install [abstractions module](/logging/modules/abstractions.md).

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](/logging/implementations/silent-log.md).
