Show / Hide Table of Contents

Class LoggingContextExtensions

Provides extension methods for writing log messages using FFmpeg logging contexts.

Inheritance
object
LoggingContextExtensions
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
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 Source

Debug(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.

View Source

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.

View Source

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.

View Source

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.

View Source

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.

View Source

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.

View Source

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.

View Source

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.

View Source

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.

  • View Source
In this article
Back to top Generated by DocFX