TestimoX

API Reference

Class

NetLogonLog

Namespace ADPlayground
Assembly ADPlayground

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) #
Returns: Void

Adds a culture and optional date format to the parser.

Parameters

culture System.Globalization.CultureInfo requiredposition: 0
Culture to register.
dateFormat System.String requiredposition: 1
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 required
Timestamp parsed without a year.

Returns

The adjusted timestamp with year rollover handled.

public NetLogonLogSummary GetLogSummary(String path) #
Returns: NetLogonLogSummary

Reads a NetLogon log file and returns summary information.

Parameters

path System.String requiredposition: 0
Path to the log file.

Returns

A populated NetLogonLogSummary instance.

public IEnumerable<NetLogonLogEntryGeneric> ReadNetLogonDebugLog(String filePath, Boolean skipDuplicates = false) #
Returns: IEnumerable<NetLogonLogEntryGeneric>

Reads NetLogon debug log entries from a file.

Parameters

filePath System.String requiredposition: 0
Path to the NetLogon log file.
skipDuplicates System.Boolean = false optionalposition: 1
When set, duplicate entries are filtered out.

Returns

Enumerable of parsed log entries.

public IAsyncEnumerable<NetLogonLogEntryGeneric> ReadNetLogonDebugLogAsync(String filePath, Boolean skipDuplicates = false) #
Returns: IAsyncEnumerable<NetLogonLogEntryGeneric>

Asynchronously reads NetLogon debug log entries from a file.

Parameters

filePath System.String requiredposition: 0
Path to the NetLogon log file.
skipDuplicates System.Boolean = false optionalposition: 1
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) #
Returns: IEnumerable<NetLogonLogEntryGeneric>

Watches the specified NetLogon log file for new entries synchronously.

Parameters

path System.String requiredposition: 0
Path to the NetLogon log.
skipDuplicates System.Boolean = false optionalposition: 1
Skip duplicate lines if set.
cancellationToken System.Threading.CancellationToken = null optionalposition: 2
Cancellation token to stop watching.
public IAsyncEnumerable<NetLogonLogEntryGeneric> WatchNetLogonDebugLogAsync(String path, Boolean skipDuplicates = false, CancellationToken cancellationToken = null) #
Returns: IAsyncEnumerable<NetLogonLogEntryGeneric>

Watches the specified NetLogon log file for new entries.

Parameters

path System.String requiredposition: 0
Path to the NetLogon log.
skipDuplicates System.Boolean = false optionalposition: 1
Skip duplicate lines if set.
cancellationToken System.Threading.CancellationToken = null optionalposition: 2
Cancellation token to stop watching.

Fields

LogPatterns #

Regular expression patterns used to parse NetLogon debug log entries.