Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Commit

Permalink
#98. Add info to README.
Browse files Browse the repository at this point in the history
  • Loading branch information
techyian committed Dec 30, 2019
1 parent 79aaeb1 commit ac5800d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@ PM> Install-Package MMALSharp.FFmpeg

Pre-release builds can be found on [MyGet](https://www.myget.org/gallery/mmalsharp):

## Logging configuration

For v0.6, MMALSharp now uses `Microsoft.Extensions.Logging.Abstractions` to provide package agnostic logging. If you want to enable logging, you must provide the `ILoggerFactory`
instance your client application is using. For .NET Core applications, this will typically be done during dependency injection configuration. For more information, please
see [here](https://docs.microsoft.com/en-us/aspnet/core/fundamentals/logging/?view=aspnetcore-3.1). The `ILoggerFactory` instance should be set before carrying out any MMALSharp
specific operations.

`MMALLog.LoggerFactory = myLoggerFactory;`

## Basic Examples

Take a JPEG image using YUV420 encoding:
Expand Down

0 comments on commit ac5800d

Please sign in to comment.