API Reference
NetLogonLog
Parses NetLogon debug log files and exposes entries as strongly typed objects.
Inheritance
- Object
- NetLogonLog
Constructors
public NetLogonLog() #Initializes a new instance of the NetLogonLog class.
Methods
public static Void AddCulture(CultureInfo culture, String dateFormat) #VoidAdds a culture and optional date format to the parser.
Parameters
- culture System.Globalization.CultureInfo
- Culture to register.
- dateFormat System.String
- Optional date format to include.
AdjustForYearRollover(System.DateTime candidate) #Adjusts the year when a timestamp appears to jump ahead of the previous entry.
Parameters
- candidate System.DateTime
- Timestamp parsed without a year.
Returns
The adjusted timestamp with year rollover handled.
public NetLogonLogSummary GetLogSummary(String path) #NetLogonLogSummaryReads a NetLogon log file and returns summary information.
Parameters
- path System.String
- Path to the log file.
Returns
A populated NetLogonLogSummary instance.
public IEnumerable<NetLogonLogEntryGeneric> ReadNetLogonDebugLog(String filePath, Boolean skipDuplicates = false) #IEnumerable<NetLogonLogEntryGeneric>Reads NetLogon debug log entries from a file.
Parameters
- filePath System.String
- Path to the NetLogon log file.
- skipDuplicates System.Boolean = false
- When set, duplicate entries are filtered out.
Returns
Enumerable of parsed log entries.
public IAsyncEnumerable<NetLogonLogEntryGeneric> ReadNetLogonDebugLogAsync(String filePath, Boolean skipDuplicates = false) #IAsyncEnumerable<NetLogonLogEntryGeneric>Asynchronously reads NetLogon debug log entries from a file.
Parameters
- filePath System.String
- Path to the NetLogon log file.
- skipDuplicates System.Boolean = false
- When set, duplicate entries are filtered out.
Returns
Async enumerable of parsed log entries.
public IEnumerable<NetLogonLogEntryGeneric> WatchNetLogonDebugLog(String path, Boolean skipDuplicates = false, CancellationToken cancellationToken = null) #IEnumerable<NetLogonLogEntryGeneric>Watches the specified NetLogon log file for new entries synchronously.
Parameters
- path System.String
- Path to the NetLogon log.
- skipDuplicates System.Boolean = false
- Skip duplicate lines if set.
- cancellationToken System.Threading.CancellationToken = null
- Cancellation token to stop watching.
public IAsyncEnumerable<NetLogonLogEntryGeneric> WatchNetLogonDebugLogAsync(String path, Boolean skipDuplicates = false, CancellationToken cancellationToken = null) #IAsyncEnumerable<NetLogonLogEntryGeneric>Watches the specified NetLogon log file for new entries.
Parameters
- path System.String
- Path to the NetLogon log.
- skipDuplicates System.Boolean = false
- Skip duplicate lines if set.
- cancellationToken System.Threading.CancellationToken = null
- Cancellation token to stop watching.
Inherited Methods
Fields
LogPatterns #Regular expression patterns used to parse NetLogon debug log entries.