 | LoggerBaseCutLog(String, Int64, Boolean) Method |
Shortens the log file 'logPath' to the last 'countItems' entries.
The original log file is saved with the extension '.last'.
If 'countLines' is false, the entries with the last 'countItems' remain
date values, otherwise the last 'countItems' lines.
Namespace: NetEti.ApplicationControlAssembly: NetEti.Logging (in NetEti.Logging.dll) Version: 1.0.0+b865061c8026804ece26684b7dc3403284234a08
Syntaxpublic static void CutLog(
string logPath,
long countItemsToEnd,
bool countLines
)
Public Shared Sub CutLog (
logPath As String,
countItemsToEnd As Long,
countLines As Boolean
)
public:
static void CutLog(
String^ logPath,
long long countItemsToEnd,
bool countLines
)
static member CutLog :
logPath : string *
countItemsToEnd : int64 *
countLines : bool -> unit
Parameters
- logPath String
- Path + name of the log file.
- countItemsToEnd Int64
- Number of date entries or lines to be retained at the end.
- countLines Boolean
- If True, lines are counted, otherwise date entries are counted.
See also