It is abstract class for using in any parts of code.
-
Function for add time and object information (if o is not nil) to string.
-
Procedure for add indent to all next strings.
-
Procedure for remove indent from all next strings.
-
Procedure for writing string in log.
-
String what using as indent symbol in logs. Default value is DefOneTabStr const(two spaces).
Write log in RAM buffer.
-
Buffer when you can find log.
File log.
-
Use to create log from file name. If file not exist if will created.
Doesn't do anything.
Use if you don't need log, but don't want del logging from code.
Write log to command line.
-
Use to create log to default commandline.
-
Use to create log from winapi handle (Windows only). Use as:
Log:=TAGCommandLineLog.Create(GetStdHandle(STD_OUTPUT_HANDLE));
Write log to pascal stream (TStream).
-
Use to create log from pascal stream (TStream).
Write log to callback.
-
Type. In delphi it is anonimus procedure, in free pascal - standart procedure. Declaration:
TCallBack={$IFNDEF FPC}reference to{$ENDIF}procedure(s:string);
-
Use to create log from callback.
Writes several logs.
-
Type for list of logs. In delphi it is
System.Generics.Collections.TList
, in free pascal -FGL.TFPGList
. Declaration:TLogsList={$IFDEF FPC}specialize TFPGList<TAGLog>{$ELSE}TList<TAGLog>{$ENDIF}
-
Use to create log from TLogsList. If ALogs is nil will used empty list.