 | LoggerBaseCutLog(String, Int64, Boolean) Methode |
Kürzt das Log-File 'logPath' auf die letzten 'countItems' Einträge.
Das ursprüngliche Log-File wird mit der Extension '.last' gesichert.
Wenn 'countLines' false ist, bleiben die Einträge mit den letzten 'countItems'
Datumswerten erhalten, ansonsten die letzten 'countItems' Zeilen.
Namensraum: NetEti.ApplicationControlAssembly: NetEti.Logging (in NetEti.Logging.dll) Version: 1.0.0+acaf81dbf65483efca2a792d55c719cf92119339
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
Parameter
- logPath String
- Pfad + Name des Logfiles.
- countItemsToEnd Int64
- Anzahl Datumseinträge oder Zeilen, die am Ende erhalten bleiben sollen.
- countLines Boolean
- Bei True werden Zeilen gezählt, ansonsten Datumseinträge.
Siehe auch