New LogType ltOff for TEventLog
Original Reporter info from Mantis: eclipticon
-
Reporter name:
Original Reporter info from Mantis: eclipticon
- Reporter name:
Description:
In TEventLog, it would be great to have a third option for LogType, that discards all input ("ltOff"). This would allow to easily disable logging infrastructure without adding a if ... then query ahead of each log call.
Additional information:
Changes suggested are:
TLogType = (ltSystem,ltFile,ltOff);
procedure TEventLog.Log(EventType: TEventType; Msg: String);
begin
EnsureActive;
Case FlogType of
ltFile : WriteFileLog(EventType,Msg);
ltSystem : WriteSystemLog(EventType,Msg);
ltOff: begin end;
end;
end;
Mantis conversion info:
- Mantis ID: 20544
- Version: 2.4.2
- Fixed in version: 3.0.0
- Fixed in revision: 19630 (#7effdb1e)
- Monitored by: » eclipticon (eclipticon)
- Target version: 3.0.0