Méthode | Description | |
---|---|---|
Close ( ) : void |
Closes the file if it is currently opened. Does nothing otherwise.
|
|
Dispose ( ) : void |
Simply calls Close.
|
|
Initialize ( IActivityMonitor monitor ) : bool |
Checks whether this MonitorFileOutputBase is valid: its base path is successfully created. Can be called multiple times.
|
Méthode | Description | |
---|---|---|
AfterWrite ( ) : void |
This method must be called after write: it closes and produces the final file if the current file is full.
|
|
BeforeWrite ( ) : void |
This method must be called before any write: it calls OpenNewFile if needed.
|
|
CloseCurrentFile ( ) : void |
Closes the currently opended file.
|
|
MonitorFileOutputBase ( string configuredPath, System.Guid monitorId, int maxCountPerFile, bool useGzipCompression ) : System |
Initializes a new file for ILogEntry issued from a specific monitor: the final file name is based on FileUtil.FileNameUniqueTimeUtcFormat with a "-{XXX...XXX}.ckmon" suffix where {XXX...XXX} is the unique identifier (Guid with the B format - 32 digits separated by hyphens, enclosed in braces) of the monitor. You must call Initialize before actually using this object.
|
|
MonitorFileOutputBase ( string configuredPath, string fileNameSuffix, int maxCountPerFile, bool useGzipCompression ) : System |
Initializes a new file for IMulticastLogEntry: the final file name is based on FileUtil.FileNameUniqueTimeUtcFormat with a ".ckmon" extension. You must call Initialize before actually using this object.
|
|
OpenNewFile ( ) : Stream |
Opens a new file suffixed by ".tmp".
|
Méthode | Description | |
---|---|---|
ComputeBasePath ( IActivityMonitor m ) : string |
Computes the root path.
|
public Initialize ( IActivityMonitor monitor ) : bool | ||
monitor | IActivityMonitor | Required monitor. |
Résultat | bool |
protected MonitorFileOutputBase ( string configuredPath, System.Guid monitorId, int maxCountPerFile, bool useGzipCompression ) : System | ||
configuredPath | string | The path. Can be absolute. When relative, it will be under |
monitorId | System.Guid | Monitor identifier. |
maxCountPerFile | int | Maximum number of entries per file. Must be greater than 1. |
useGzipCompression | bool | True to gzip the file. |
Résultat | System |
protected MonitorFileOutputBase ( string configuredPath, string fileNameSuffix, int maxCountPerFile, bool useGzipCompression ) : System | ||
configuredPath | string | The path: it can be absolute and when relative, it will be under |
fileNameSuffix | string | Suffix of the file including its extension. Must not be null nor empty. |
maxCountPerFile | int | Maximum number of entries per file. Must be greater than 1. |
useGzipCompression | bool | True to gzip the file. |
Résultat | System |