First off. Excellent project. I am testing it out as a
replacement for the series of logger classes that I
wrote. Yours has a LOT more features than mine does.
I would like to suggest two enhancements to the
TreeDataFormatter.
1) It would be nice if the data portion could be indented
a bit. I realize that you write it out with a single space
but the option to put more may give it a cleaner look.
2) With map data types, it would be nice if some
formatting (specifically width property) could be set.
Letting the value portions of the pairs line up would
greatly enhance readability.
Below is actually output that you write. The second
version shows my suggestions.
2004-05-18 14:42:46.182 Sent message of 168 bytes
<M>
| ("Message Fields", <M>)
| |
("ElectionTime", "632204881661665260")
| | ("messageTimestamp", '2004-05-
18T14:42:46.166-04:00')
| | ("to", "Election")
| | ("ProcessId", "1f5c905f-ad5c-45e8-
ac7a-b9c2a75e9ef7")
| + ("ProcessName", "Heartbeat Tester")
| ("Send
Subject", "DEV.Heartbeat.Heartbeat_Tester.Election")
+ ("Reply Subject", NULL)
2004-05-18 14:42:46.650 Received message of 168
bytes
<M>
| ("Message Fields", <M>)
| |
("ElectionTime", "632204881661665260")
| | ("messageTimestamp", '2004-05-
18T14:42:46.166-04:00')
| | ("to", "Election")
| | ("ProcessId", "1f5c905f-ad5c-45e8-
ac7a-b9c2a75e9ef7")
| + ("ProcessName", "Heartbeat Tester")
| ("Send
Subject", "DEV.Heartbeat.Heartbeat_Tester.Election")
+ ("Reply Subject", NULL)
-----
2004-05-18 14:42:46.182 Sent message of 168 bytes
<M>
| ("Message Fields", <M>)
| |
("ElectionTime", "632204881661665260")
| |
("messageTimestamp", '2004-05-18T14:42:46.166-
04:00')
| | ("to", "Election")
| |
("ProcessId", "1f5c905f-ad5c-45e8-ac7a-
b9c2a75e9ef7")
| +
("ProcessName", "Heartbeat Tester")
| ("Send
Subject", "DEV.Heartbeat.Heartbeat_Tester.Election")
+ ("Reply Subject", NULL)
2004-05-18 14:42:46.650 Received message of 168
bytes
<M>
| ("Message Fields", <M>)
| |
("ElectionTime", "632204881661665260")
| |
("messageTimestamp", '2004-05-18T14:42:46.166-
04:00')
| | ("to", "Election")
| |
("ProcessId", "1f5c905f-ad5c-45e8-ac7a-
b9c2a75e9ef7")
| +
("ProcessName", "Heartbeat Tester")
| ("Send
Subject", "DEV.Heartbeat.Heartbeat_Tester.Election")
+ ("Reply Subject", NULL)
Logged In: YES
user_id=1044624
Bah. The posting ruined my sample output...