IMB3.TEventEntry.LogWriteLn C# (CSharp) Method

LogWriteLn() public method

public LogWriteLn ( string aLine, TLogLevel aLevel ) : int
aLine string
aLevel TLogLevel
return int
        public int LogWriteLn(string aLine, TLogLevel aLevel) {
            var Payload = new TByteBuffer();
            if (!IsPublished && connection.AutoPublish)
                Publish();
            if (IsPublished) {
                Payload.Prepare((Int32) 0); // client id filled in by hub
                Payload.Prepare(aLine);
                Payload.Prepare((Int32) aLevel);
                Payload.PrepareApply();
                Payload.QWrite((Int32) 0); // client id filled in by hub
                Payload.QWrite(aLine);
                Payload.QWrite((Int32) aLevel);
                return SignalEvent(TEventKind.ekLogWriteLn, Payload.Buffer);
            }
            else
                return TConnection.iceNotEventPublished;
        }