FileLogListener

Name Value
Assembly Catel.Core
Namespace Catel.Logging
Available on .NET Framework 4.5, .NET Framework 4.6
public class FileLogListener : BatchLogListenerBase

Base types BatchLogListenerBase

Log listener which writes all data to a file.

Fields

Constructors

FileLogListener(Assembly assembly)

Initializes a new instance of the FileLogListener class.

Parameters

Name Description
assembly The assembly to load the product info from. Ifnull, the entry assembly will be used.

FileLogListener(string filePath, int maxSizeInKiloBytes, Assembly assembly)

Initializes a new instance of the FileLogListener class.

Parameters

Name Description
filePath The file path.
maxSizeInKiloBytes The max size in kilo bytes.
assembly The assembly to load the product info from. Ifnull, the entry assembly will be used.

Exceptions

Name Description
ArgumentException The filePath isnull or whitespace.

Properties

FilePath

Gets or sets the file path.

MaxSizeInKiloBytes

Gets or sets the maximum size information kilo bytes.

Methods


Have a question about Catel? Use StackOverflow with the Catel tag!


Discussion