Свойство | Тип | Описание | |
---|---|---|---|
FileLogger | System | ||
ValidatePathFormat | FormatBuilder |
Метод | Описание | |
---|---|---|
Add ( IEnumerable |
Adds the specified logs to storage in batches.
|
|
CloseFile ( ) : void |
Closes the current log file.
|
|
Dispose ( ) : void |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
|
FileLogger ( [ name, [ directory = null, System.Int64 maxLog = 1000, System.TimeSpan maxDuration = default(TimeSpan), LoggingLevels validLevels = LoggingLevels.All, [ format = null, [ fileNameFormat = null, [ extension = null, uint buffer = 65536, bool autoFlush = false ) : System |
Initializes a new instance of the FileLogger class.
|
|
Flush ( |
Force a flush of this logger.
|
Метод | Описание | |
---|---|---|
FileLogger ( ) : System |
Initializes static members of the FileLogger class.
|
|
ValidatePathFormat ( [ directory, [ fileNameFormat, [ extension, [ format ) : FormatBuilder |
public Add ( IEnumerable |
||
logs | IEnumerable |
The logs to add to storage. |
token | The token. | |
Результат | Task |
public FileLogger ( [ name, [ directory = null, System.Int64 maxLog = 1000, System.TimeSpan maxDuration = default(TimeSpan), LoggingLevels validLevels = LoggingLevels.All, [ format = null, [ fileNameFormat = null, [ extension = null, uint buffer = 65536, bool autoFlush = false ) : System | ||
name | [ | The filename. |
directory | [ | The directory to log to (default to entry assembly directory). |
maxLog | System.Int64 | |
maxDuration | System.TimeSpan | The maximum time period that a single log file can cover. |
validLevels | LoggingLevels | |
format | [ | The log format (default to "Verbose,Xml"). |
fileNameFormat | [ | |
extension | [ | |
buffer | uint | The buffer. |
autoFlush | bool | if set to |
Результат | System |
public Flush ( |
||
token | ||
Результат | Task |