Class LoggingContextExtensions
Provides extension methods for writing log messages using FFmpeg logging contexts.
Inherited Members
Namespace: FFmpeg.Logging
Assembly: FFmpeg.dll
Syntax
public static class LoggingContextExtensions
Remarks
These methods forward messages to Logger while automatically using the object implementing ILoggingContext as the FFmpeg logging context.
Methods
View SourceDebug(ILoggingContext, string)
Writes a debug-level message using this FFmpeg logging context.
Declaration
public static void Debug(this ILoggingContext context, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| ILoggingContext | context | The FFmpeg logging context. |
| string | message | The message text to write. |
Error(ILoggingContext, string)
Writes an error-level message using this FFmpeg logging context.
Declaration
public static void Error(this ILoggingContext context, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| ILoggingContext | context | The FFmpeg logging context. |
| string | message | The message text to write. |
Fatal(ILoggingContext, string)
Writes a fatal-level message using this FFmpeg logging context.
Declaration
public static void Fatal(this ILoggingContext context, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| ILoggingContext | context | The FFmpeg logging context. |
| string | message | The message text to write. |
Info(ILoggingContext, string)
Writes an informational message using this FFmpeg logging context.
Declaration
public static void Info(this ILoggingContext context, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| ILoggingContext | context | The FFmpeg logging context. |
| string | message | The message text to write. |
Log(ILoggingContext, LogLevel, string)
Writes a message using the specified log level and FFmpeg logging context.
Declaration
public static void Log(this ILoggingContext context, LogLevel level, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| ILoggingContext | context | The FFmpeg object used as the logging context. |
| LogLevel | level | The FFmpeg log level assigned to the message. |
| string | message | The message text to write. |
Panic(ILoggingContext, string)
Writes a panic-level message using this FFmpeg logging context.
Declaration
public static void Panic(this ILoggingContext context, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| ILoggingContext | context | The FFmpeg logging context. |
| string | message | The message text to write. |
Trace(ILoggingContext, string)
Writes a trace-level message using this FFmpeg logging context.
Declaration
public static void Trace(this ILoggingContext context, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| ILoggingContext | context | The FFmpeg logging context. |
| string | message | The message text to write. |
Verbose(ILoggingContext, string)
Writes a verbose-level message using this FFmpeg logging context.
Declaration
public static void Verbose(this ILoggingContext context, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| ILoggingContext | context | The FFmpeg logging context. |
| string | message | The message text to write. |
Warning(ILoggingContext, string)
Writes a warning-level message using this FFmpeg logging context.
Declaration
public static void Warning(this ILoggingContext context, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| ILoggingContext | context | The FFmpeg logging context. |
| string | message | The message text to write. |