AdsConsoleLoggerLogTState Method
Writes a log entry.
Namespace: TwinCAT.Ads.Logging
Assembly: TwinCAT.Ads.ConfigurationProviders
(in TwinCAT.Ads.ConfigurationProviders.dll) Version:
7.0.0+e56d35ccc4675faac24789a4aab60071fc61d470
Syntax
C#
public void Log<TState>(
LogLevel logLevel,
EventId eventId,
TState state,
Exception? exception,
Func<TState, Exception?, string> formatter
)Parameters
|
logLevel LogLevel |
Entry will be written on this level. |
|
eventId EventId |
Id of the event. |
|
state TState |
The entry to be written. Can be also an object. |
|
exception Exception |
The exception related to this entry. |
|
Function to create a String message of the state and exception. |
Type Parameters
|
TState |
The type of the object to be written. |
Reference
AdsConsoleLogger Class TwinCAT.Ads.Logging Namespace
Beckhoff Automation GmbH & Co. KG 2001-2026