ListenerParseLogMessageLine Method

Parses line stored in listener log.

Definition

Namespace: OddPrg.Communication
Assembly: OddPrg.Communication.Listeners (in OddPrg.Communication.Listeners.dll) Version: 1.0.0.0 (1.0.0.0)
C#
public static bool ParseLogMessageLine(
	string line,
	out DateTime timeStamp,
	out string message,
	out char levelPrefix
)

Parameters

line  String
Line to parse.
timeStamp  DateTime
Timestamp of the message. If it cannot be parsed, DateTime.MinValue is returned.
message  String
Log message.
levelPrefix  Char
Message level: E = error, C = communication, P = protocol.

Return Value

Boolean
True if the line was successfully parsed, otherwise false.

See Also