Click or drag to resize

LoggerBaseCutLog(String, Int64, 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.ApplicationControl
Assembly: NetEti.Logging (in NetEti.Logging.dll) Version: 1.0.0+b865061c8026804ece26684b7dc3403284234a08
Syntax
public static void CutLog(
	
	string logPath,
	
	long countItemsFromStart,
	
	long countItemsToEnd,
	
	bool countLines
)

Parameters

logPath  String
Path + name of the log file.
countItemsFromStart  Int64
Number of date entries or lines that should remain at the beginning.
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