Information - 05/03/2026
This version improves the reliability of log file monitoring in proxy/Squid environments, increases privacy in Event Logs and adds a convenient service control script for Log Mail Notification.
New Features
- Squid/Apache log support: Log Mail Notification now detects timestamps in Squid/Apache style (
[05/Mar/2026:13:15:46 +0100]) and uses them for time-window evaluation. - Multiple brackets in log lines: In proxy logs with several bracket pairs (e.g.
(squid-1)[59757]...[05/Mar/2026:13:15:46 +0100]) all[...]blocks are inspected until a valid timestamp is found. - ServiceControl_LMN.bat: New service control script for the Log Mail Notification Windows service with menu (start/stop/restart/status), UAC elevation, PowerShell status lookup and single-key selection.
Improvements
- Correct time-window checks for proxy logs: Alert e‑mails for old entries (e.g. Squid logs) are no longer repeated once they are outside the configured loglasttime window, even if the log file continues to grow.
- Preference of line timestamps: If a valid timestamp is detected inside the log line, it is used for evaluation; the
File.GetLastWriteTime()fallback is only used for log formats without any time information. - Privacy-friendly proxy diagnostics: Proxy diagnostic messages in the Event Log now show abstracted targets (Activation, Webservice, Update or hostname) instead of full URLs.
- Consistent service control UX: The console output of ServiceControl_LMN.bat has been aligned with the known EMN script (clean menu, no visible batch commands).
Technical Changes
- Extended timestamp parser: The function that extracts timestamps from log lines now also supports
dd/MMM/yyyy:HH:mm:ssinside[...]and iterates over all bracket pairs in the line. - Anonymised proxy logging: In Log Mail Notification, proxy diagnostics are now logged as
Net: proxyMode=...; proxy=...; effective=Activation/Webservice/Update. - Robust console output: The service control script explicitly sets
@echo offinside the menu to avoid display issues caused by encoding/BOM or code page differences.
Important Notes
- Configuration: For log files in Squid/proxy format, logfile, logstring, casesensitiv and loglasttime should be configured as recommended in the manual (e.g. timertime=5 and loglasttime=15).
- Upgrade from 1.1.4/1.1.5: After updating, the Windows service should be restarted once so that the extended timestamp detection and proxy logic become active.
- ServiceControl_LMN.bat: The script requires administrative privileges; UAC elevation is triggered automatically when the script is started.