2
$Id: felog.inc,v 1.3 2003/10/09 15:53:21 peter Exp $
3
This file is part of the Free Pascal run time library.
4
Copyright (c) 2003 by the Free Pascal development team
6
Generic implementation of 'system log' event mechanism which maps to file log.
8
See the file COPYING.FPC, included in this distribution,
9
for details about the copyright.
11
This program is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15
**********************************************************************}
17
Function TEventLog.DefaultFileName : String;
20
Result:=ChangeFileExt(ExtractFileName(Paramstr(0)),'.log');
23
Procedure TEventLog.ActivateSystemLog;
30
Procedure TEventLog.DeActivateSystemLog;
36
procedure TEventLog.WriteSystemLog(EventType : TEventType; Msg : String);
39
WriteFileLog(EventType,Msg);
42
Function TEventLog.RegisterMessageFile(AFileName : String) : Boolean;
48
function TEventLog.MapTypeToCategory(EventType: TEventType): Word;
53
function TEventLog.MapTypeToEventID(EventType: TEventType): DWord;
59
function TEventLog.MapTypeToEvent(EventType: TEventType): DWord;
67
Revision 1.3 2003/10/09 15:53:21 peter
70
Revision 1.1 2003/10/06 20:33:58 peter
71
* classes moved to rtl for 1.1
72
* classes .inc and classes.pp files moved to fcl/classes for
73
backwards 1.0.x compatiblity to have it in the fcl
75
Revision 1.1 2003/02/19 20:25:16 michael