Changeset 250 for Common/UDebugLog.pas


Ignore:
Timestamp:
Jun 13, 2011, 8:00:17 AM (13 years ago)
Author:
george
Message:
  • Modified: Unit UCommon in CoolWeb package used form package Common as dependency.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Common/UDebugLog.pas

    r118 r250  
    2121  { TDebugLog }
    2222
    23   TDebugLog = class
     23  TDebugLog = class(TComponent)
    2424  private
     25    FFileName: string;
    2526    FOnNewItem: TNewItemEvent;
    2627  public
    27     FileName: string;
    2828    WriteToFileEnable: Boolean;
    2929    Items: TThreadList;
     
    3232    procedure WriteToFile(Text: string);
    3333    property OnNewItem: TNewItemEvent read FOnNewItem write FOnNewItem;
    34     constructor Create;
     34    constructor Create(AOwner: TComponent); override;
    3535    destructor Destroy; override;
     36  published
     37    property FileName: string read FFileName write FFileName;
    3638  end;
    3739
     
    8587end;
    8688
    87 constructor TDebugLog.Create;
     89constructor TDebugLog.Create(AOwner: TComponent);
    8890begin
     91  inherited;
    8992  Items := TThreadList.Create;
    9093  MaxCount := 100;
     
    105108end;
    106109
    107 initialization
    108 
    109 DebugLog := TDebugLog.Create;
    110 
    111 finalization
    112 
    113 DebugLog.Free;
    114 
    115110end.
    116111
Note: See TracChangeset for help on using the changeset viewer.