Class TcoLogger
Default implementation of Logger.
tip
This type is partially extended by IVF to retrieve messages from the logger in IVF application.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: PlcDocu.TcoCore
Assembly: TcoCoreConnector.dll
Syntax
public abstract class TcoLogger : TcoObject
Constructors
| Improve this Doc View SourceTcoLogger()
Prevents creating instance of this class via public constructor
Declaration
public TcoLogger()
Fields
| Improve this Doc View Source_buffer
Circural buffer for this logger.
Declaration
public TcoLogItem _buffer
Field Value
Type | Description |
---|---|
TcoLogItem |
_minLoggingLevel
Minimal log level. Only messages with higher serverity than this will be logged.
Declaration
public short _minLoggingLevel
Field Value
Type | Description |
---|---|
System.Int16 |
_plcCarret
Circular carret of of the message buffer.
Declaration
public object _plcCarret
Field Value
Type | Description |
---|---|
System.Object |
MAX_MESSAGE_BUFFER_INDEX
Max number of buffered log entries.
Declaration
public object MAX_MESSAGE_BUFFER_INDEX
Field Value
Type | Description |
---|---|
System.Object |
Methods
| Improve this Doc View SourcePush(Object, Object)
Declaration
[IgnoreReflection]
public void Push(dynamic Text, dynamic Category)
Parameters
Type | Name | Description |
---|---|---|
System.Object | Text | |
System.Object | Category |
PushMessage(Object)
Pushes the message to logging buffer.
See also Push
important
This method is typically invoked from a `TcoMessenger`. Depending on settings of the messenger the messages can be logged on rising edge of the message, to prevent buffer overrun. For details see `TcoMessengerSettings`.
Declaration
[IgnoreReflection]
public void PushMessage(dynamic inMessage)
Parameters
Type | Name | Description |
---|---|---|
System.Object | inMessage | Plc type : TcoMessage [VAR_INPUT]; Twin type : TcoMessage
|