AdsLoggerConfiguration Class

Class AdsLoggerConfiguration.

Inheritance Hierarchy

SystemObject
  TwinCAT.Ads.LoggingAdsLoggerConfiguration

Namespace: TwinCAT.Ads.Logging
Assembly: TwinCAT.Ads.ConfigurationProviders (in TwinCAT.Ads.ConfigurationProviders.dll) Version: 7.0.0+e56d35ccc4675faac24789a4aab60071fc61d470

Syntax

C#

public class AdsLoggerConfiguration

The AdsLoggerConfiguration type exposes the following members.

Constructors

 

Name

Description

AdsLoggerConfiguration

Initializes a new instance of the AdsLoggerConfiguration class.

AdsLoggerConfiguration(Int32, LogLevel)

Initializes a new instance of the AdsLoggerConfiguration class.

Properties

 

Name

Description

EventId

Gets or sets the logging event identifier.

LogLevel

Gets or sets the LogLevel used by the logging (Default: LogLevel.Information)

Methods

 

Name

Description

CreateDefault

Creates a default AdsLoggerConfiguration with EventId = 0 and Information.

CreateFromConfiguration

Creates the AdsLoggerConfiguration from configuration interface.

CreateFromEnvironment

Creates a AdsLoggerConfiguration from Environment variables

Equals

Determines whether the specified object is equal to the current object.
(Inherited from Object)

Finalize

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)

GetHashCode

Serves as the default hash function.
(Inherited from Object)

GetType

Gets the Type of the current instance.
(Inherited from Object)

MemberwiseClone

Creates a shallow copy of the current Object.
(Inherited from Object)

ToString

Returns a string that represents the current object.
(Inherited from Object)

Remarks

This configuration class is used in conjunction with the AdsLoggerProvider and AdsConsoleLogger class to configure the logging.

Reference

TwinCAT.Ads.Logging Namespace AdsLoggerProvider AdsConsoleLogger

Beckhoff Automation GmbH & Co. KG 2001-2026