How tacman1981/connect-log-parser works
Peak Online is a WPF viewer for daily player peaks computed from connection logs produced by the ConnectLogger plugin. A user selects a log file or reopens one from recent history; the window passes its path to the parser, which reads and sorts events, calculates daily and overall peaks, and returns daily values for bar-chart rendering. The window also persists file history and background color in isolated storage. The plugin’s log output and the viewer’s input are shown as a shared file, though the app does not automatically locate it. The documented workflow and sampled code support these links; the XAML layout was not sampled.
Main entry points: MainWindow.xaml.cs Window workflow · TextFileParser.cs Log parsing · ConnectLogger.cs Connect logger
Components 9
Log production
- Connect logger
ConnectLogger.cs - Connection log
Peak viewer
- Window workflow
Peak Online/MainWindow.xaml.cs - Log parsing
Peak Online/TextFileParser.cs - Daily peak calculation
Peak Online/TextFileParser.cs - Peak chart
Peak Online/MainWindow.xaml.cs
User preferences
- Isolated settings
Peak Online/MainWindow.xaml.cs
Other components
- Player events
- Viewer user
Connections 9
- Player events → Connect logger: triggers hooks
ConnectLogger.cs - Connect logger → Connection log: writes events
ConnectLogger.cs - Viewer user → Window workflow: selects log
Peak Online/MainWindow.xaml.cs - Window workflow → Log parsing: passes path
Peak Online/MainWindow.xaml.cs - Connection log → Log parsing: reads lines
Peak Online/TextFileParser.cs - Log parsing → Daily peak calculation: calculates peaks
Peak Online/TextFileParser.cs - Window workflow → Peak chart: renders bars
Peak Online/MainWindow.xaml.cs - Daily peak calculation → Peak chart: supplies values
Peak Online/MainWindow.xaml.cs - Window workflow → Isolated settings: reads and writes
Peak Online/MainWindow.xaml.cs