C# Class MetroLog.FileTarget

Inheritance: MetroLog.Targets.FileTargetBase
Mostra file Open project: onovotny/MetroLog

Public Methods

Method Description
EnsureInitializedAsync ( ) : Task

Protected Methods

Method Description
DoCleanup ( Regex pattern, System.DateTime threshold ) : Task
DoWriteAsync ( StreamWriter streamWriter, string contents, LogEventInfo entry ) : Task
EnsureInitialized ( ) : Task
FileTarget ( Layout layout ) : System
GetCompressedLogsInternal ( ) : Task
GetWritableStreamForFile ( string fileName ) : Task
WriteTextToFileCore ( StreamWriter stream, string contents ) : Task

Private Methods

Method Description
GetUserAppDataPath ( ) : string

Method Details

DoCleanup() protected final method

protected final DoCleanup ( Regex pattern, System.DateTime threshold ) : Task
pattern System.Text.RegularExpressions.Regex
threshold System.DateTime
return Task

DoWriteAsync() protected final method

protected final DoWriteAsync ( StreamWriter streamWriter, string contents, LogEventInfo entry ) : Task
streamWriter System.IO.StreamWriter
contents string
entry LogEventInfo
return Task

EnsureInitialized() protected method

protected EnsureInitialized ( ) : Task
return Task

EnsureInitializedAsync() public static method

public static EnsureInitializedAsync ( ) : Task
return Task

FileTarget() protected method

protected FileTarget ( Layout layout ) : System
layout MetroLog.Layouts.Layout
return System

GetCompressedLogsInternal() protected method

protected GetCompressedLogsInternal ( ) : Task
return Task

GetWritableStreamForFile() protected method

protected GetWritableStreamForFile ( string fileName ) : Task
fileName string
return Task

WriteTextToFileCore() protected abstract method

protected abstract WriteTextToFileCore ( StreamWriter stream, string contents ) : Task
stream System.IO.StreamWriter
contents string
return Task