Components: use LazLoggerBase instead of LazLogger

git-svn-id: trunk@58083 -
This commit is contained in:
ondrej 2018-06-02 16:46:39 +00:00
parent f34c00fc64
commit c0136a0867
24 changed files with 59 additions and 59 deletions

View File

@ -6,7 +6,7 @@ interface
uses uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ComCtrls, ButtonPanel, Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ComCtrls, ButtonPanel,
Buttons, CheckLst, EditBtn, ExtCtrls, IDEIntf, MenuIntf, LazLoggerBase, LazLogger; Buttons, CheckLst, EditBtn, ExtCtrls, IDEIntf, MenuIntf, LazLoggerBase, LazLoggerBase;
type type

View File

@ -6,7 +6,7 @@ interface
uses uses
Classes, SysUtils, types, math, Controls, Graphics, ComCtrls, LCLType, Classes, SysUtils, types, math, Controls, Graphics, ComCtrls, LCLType,
LMessages, LCLIntf, AnchorDockStorage, LazLogger; LMessages, LCLIntf, AnchorDockStorage, LazLoggerBase;
type type
TADLTVMonitor = class TADLTVMonitor = class

View File

@ -21,7 +21,7 @@ interface
uses uses
Classes, SysUtils, LazHelpIntf, LazConfigStorage, HelpIntfs, Classes, SysUtils, LazHelpIntf, LazConfigStorage, HelpIntfs,
Dialogs, Forms, LazLogger, FileUtil, LazFileUtils, LHelpControl, LResources; Dialogs, Forms, LazLoggerBase, FileUtil, LazFileUtils, LHelpControl, LResources;
const const
CHMMimeType = 'application/chm'; CHMMimeType = 'application/chm';

View File

@ -13,7 +13,7 @@ Currently, the only help viewer that supports this protocol is the lhelp CHM hel
interface interface
uses uses
Classes, SysUtils, LazFileUtils, LazLogger, SimpleIPC, process, UTF8Process; Classes, SysUtils, LazFileUtils, LazLoggerBase, SimpleIPC, process, UTF8Process;
const const
PROTOCOL_VERSION='2'; //IDE<>LHelp communication protocol version. Please update when breaking compatibility PROTOCOL_VERSION='2'; //IDE<>LHelp communication protocol version. Please update when breaking compatibility

View File

@ -36,7 +36,7 @@ unit CodetoolGDBTracer;
interface interface
uses uses
Classes, SysUtils, LazLogger, KeywordFuncLists, contnrs; Classes, SysUtils, LazLoggerBase, KeywordFuncLists, contnrs;
type type
TCTGDBMangledItemKind = ( TCTGDBMangledItemKind = (

View File

@ -44,7 +44,7 @@ uses
// CodeTools // CodeTools
CodeToolsStrConsts, CodeToolsStrConsts,
// LazUtils // LazUtils
LazUtilities, LazLogger, LazFileCache, LazFileUtils, LazUTF8, LazUTF8Classes; LazUtilities, LazLoggerBase, LazFileCache, LazFileUtils, LazUTF8, LazUTF8Classes;
type type
TFPCStreamSeekType = int64; TFPCStreamSeekType = int64;
@ -1481,113 +1481,113 @@ end;
procedure DebugLn(Args: array of const); procedure DebugLn(Args: array of const);
begin begin
LazLogger.Debugln(Args); LazLoggerBase.Debugln(Args);
end; end;
procedure DebugLn(const S: String; Args: array of const); procedure DebugLn(const S: String; Args: array of const);
begin begin
LazLogger.DebugLn(Format(S, Args)); LazLoggerBase.DebugLn(Format(S, Args));
end; end;
procedure DebugLn; procedure DebugLn;
begin begin
LazLogger.DebugLn(''); LazLoggerBase.DebugLn('');
end; end;
procedure DebugLn(const s: string); procedure DebugLn(const s: string);
begin begin
LazLogger.Debugln(s); LazLoggerBase.Debugln(s);
end; end;
procedure DebugLn(const s1, s2: string); procedure DebugLn(const s1, s2: string);
begin begin
LazLogger.Debugln(s1,s2); LazLoggerBase.Debugln(s1,s2);
end; end;
procedure DebugLn(const s1, s2, s3: string); procedure DebugLn(const s1, s2, s3: string);
begin begin
LazLogger.Debugln(s1,s2,s3); LazLoggerBase.Debugln(s1,s2,s3);
end; end;
procedure DebugLn(const s1, s2, s3, s4: string); procedure DebugLn(const s1, s2, s3, s4: string);
begin begin
LazLogger.Debugln(s1,s2,s3,s4); LazLoggerBase.Debugln(s1,s2,s3,s4);
end; end;
procedure DebugLn(const s1, s2, s3, s4, s5: string); procedure DebugLn(const s1, s2, s3, s4, s5: string);
begin begin
LazLogger.Debugln(s1,s2,s3,s4,s5); LazLoggerBase.Debugln(s1,s2,s3,s4,s5);
end; end;
procedure DebugLn(const s1, s2, s3, s4, s5, s6: string); procedure DebugLn(const s1, s2, s3, s4, s5, s6: string);
begin begin
LazLogger.Debugln(s1,s2,s3,s4,s5,s6); LazLoggerBase.Debugln(s1,s2,s3,s4,s5,s6);
end; end;
procedure DebugLn(const s1, s2, s3, s4, s5, s6, s7: string); procedure DebugLn(const s1, s2, s3, s4, s5, s6, s7: string);
begin begin
LazLogger.Debugln(s1,s2,s3,s4,s5,s6,s7); LazLoggerBase.Debugln(s1,s2,s3,s4,s5,s6,s7);
end; end;
procedure DebugLn(const s1, s2, s3, s4, s5, s6, s7, s8: string); procedure DebugLn(const s1, s2, s3, s4, s5, s6, s7, s8: string);
begin begin
LazLogger.Debugln(s1,s2,s3,s4,s5,s6,s7,s8); LazLoggerBase.Debugln(s1,s2,s3,s4,s5,s6,s7,s8);
end; end;
procedure DebugLn(const s1, s2, s3, s4, s5, s6, s7, s8, s9: string); procedure DebugLn(const s1, s2, s3, s4, s5, s6, s7, s8, s9: string);
begin begin
LazLogger.Debugln(s1,s2,s3,s4,s5,s6,s7,s8,s9); LazLoggerBase.Debugln(s1,s2,s3,s4,s5,s6,s7,s8,s9);
end; end;
procedure DebugLn(const s1, s2, s3, s4, s5, s6, s7, s8, s9, s10: string); procedure DebugLn(const s1, s2, s3, s4, s5, s6, s7, s8, s9, s10: string);
begin begin
LazLogger.Debugln(s1,s2,s3,s4,s5,s6,s7,s8,s9,s10); LazLoggerBase.Debugln(s1,s2,s3,s4,s5,s6,s7,s8,s9,s10);
end; end;
procedure DebugLn(const s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11: string); procedure DebugLn(const s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11: string);
begin begin
LazLogger.Debugln(s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11); LazLoggerBase.Debugln(s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11);
end; end;
procedure DebugLn(const s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, procedure DebugLn(const s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11,
s12: string); s12: string);
begin begin
LazLogger.Debugln(s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11,s12); LazLoggerBase.Debugln(s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11,s12);
end; end;
procedure DbgOut(Args: array of const); procedure DbgOut(Args: array of const);
begin begin
LazLogger.DbgOut(dbgs(Args)); LazLoggerBase.DbgOut(dbgs(Args));
end; end;
procedure DbgOut(const s: string); procedure DbgOut(const s: string);
begin begin
LazLogger.DbgOut(s); LazLoggerBase.DbgOut(s);
end; end;
procedure DbgOut(const s1, s2: string); procedure DbgOut(const s1, s2: string);
begin begin
LazLogger.DbgOut(s1,s2); LazLoggerBase.DbgOut(s1,s2);
end; end;
procedure DbgOut(const s1, s2, s3: string); procedure DbgOut(const s1, s2, s3: string);
begin begin
LazLogger.DbgOut(s1,s2,s3); LazLoggerBase.DbgOut(s1,s2,s3);
end; end;
procedure DbgOut(const s1, s2, s3, s4: string); procedure DbgOut(const s1, s2, s3, s4: string);
begin begin
LazLogger.DbgOut(s1,s2,s3,s4); LazLoggerBase.DbgOut(s1,s2,s3,s4);
end; end;
procedure DbgOut(const s1, s2, s3, s4, s5: string); procedure DbgOut(const s1, s2, s3, s4, s5: string);
begin begin
LazLogger.DbgOut(s1,s2,s3,s4,s5); LazLoggerBase.DbgOut(s1,s2,s3,s4,s5);
end; end;
procedure DbgOut(const s1, s2, s3, s4, s5, s6: string); procedure DbgOut(const s1, s2, s3, s4, s5, s6: string);
begin begin
LazLogger.DbgOut(s1,s2,s3,s4,s5,s6); LazLoggerBase.DbgOut(s1,s2,s3,s4,s5,s6);
end; end;
function DbgS(Args: array of const): string; function DbgS(Args: array of const): string;
@ -1637,52 +1637,52 @@ end;
function DbgS(const c: cardinal): string; function DbgS(const c: cardinal): string;
begin begin
Result:=LazLogger.DbgS(c); Result:=LazLoggerBase.DbgS(c);
end; end;
function DbgS(const i: integer): string; function DbgS(const i: integer): string;
begin begin
Result:=LazLogger.DbgS(i); Result:=LazLoggerBase.DbgS(i);
end; end;
function DbgS(const i: QWord): string; function DbgS(const i: QWord): string;
begin begin
Result:=LazLogger.DbgS(i); Result:=LazLoggerBase.DbgS(i);
end; end;
function DbgS(const i: int64): string; function DbgS(const i: int64): string;
begin begin
Result:=LazLogger.DbgS(i); Result:=LazLoggerBase.DbgS(i);
end; end;
function DbgS(const r: TRect): string; function DbgS(const r: TRect): string;
begin begin
Result:=LazLogger.DbgS(r); Result:=LazLoggerBase.DbgS(r);
end; end;
function DbgS(const p: TPoint): string; function DbgS(const p: TPoint): string;
begin begin
Result:=LazLogger.DbgS(p); Result:=LazLoggerBase.DbgS(p);
end; end;
function DbgS(const p: pointer): string; function DbgS(const p: pointer): string;
begin begin
Result:=LazLogger.DbgS(p); Result:=LazLoggerBase.DbgS(p);
end; end;
function DbgS(const e: extended; MaxDecimals: integer = 999): string; function DbgS(const e: extended; MaxDecimals: integer = 999): string;
begin begin
Result:=LazLogger.DbgS(e,MaxDecimals); Result:=LazLoggerBase.DbgS(e,MaxDecimals);
end; end;
function DbgS(const b: boolean): string; function DbgS(const b: boolean): string;
begin begin
Result:=LazLogger.DbgS(b); Result:=LazLoggerBase.DbgS(b);
end; end;
function DbgS(const i1, i2, i3, i4: integer): string; function DbgS(const i1, i2, i3, i4: integer): string;
begin begin
Result:=LazLogger.DbgS(i1,i2,i3,i4); Result:=LazLoggerBase.DbgS(i1,i2,i3,i4);
end; end;
function DbgS(const ms: TCustomMemoryStream; Count: PtrInt): string; function DbgS(const ms: TCustomMemoryStream; Count: PtrInt): string;
@ -1692,17 +1692,17 @@ end;
function DbgSName(const p: TObject): string; function DbgSName(const p: TObject): string;
begin begin
Result:=LazLogger.DbgSName(p); Result:=LazLoggerBase.DbgSName(p);
end; end;
function DbgSName(const p: TClass): string; function DbgSName(const p: TClass): string;
begin begin
Result:=LazLogger.DbgSName(p); Result:=LazLoggerBase.DbgSName(p);
end; end;
function dbgMemRange(P: PByte; Count: integer; Width: integer): string; function dbgMemRange(P: PByte; Count: integer; Width: integer): string;
begin begin
Result:=LazLogger.dbgMemRange(P,Count,Width); Result:=LazLoggerBase.dbgMemRange(P,Count,Width);
end; end;
function DbgStr(const StringWithSpecialChars: string): string; function DbgStr(const StringWithSpecialChars: string): string;

View File

@ -31,7 +31,7 @@ interface
uses uses
types, math, typinfo, contnrs, Classes, SysUtils, FPCanvas, FPimage, types, math, typinfo, contnrs, Classes, SysUtils, FPCanvas, FPimage,
LazLogger, ComCtrls, Controls, Graphics, LCLType, Forms, LCLIntf, GraphType; LazLoggerBase, ComCtrls, Controls, Graphics, LCLType, Forms, LCLIntf, GraphType;
type type

View File

@ -5,7 +5,7 @@ unit NewIDEWndDlg;
interface interface
uses uses
Classes, SysUtils, LazFileUtils, LazLogger, LazUTF8, CodeCache, CodeToolManager, Classes, SysUtils, LazFileUtils, LazLoggerBase, LazUTF8, CodeCache, CodeToolManager,
Forms, Controls, Graphics, Dialogs, StdCtrls, ProjectIntf, MacroIntf, Forms, Controls, Graphics, Dialogs, StdCtrls, ProjectIntf, MacroIntf,
IDEDialogs, CodyStrConsts; IDEDialogs, CodyStrConsts;

View File

@ -17,7 +17,7 @@ interface
uses uses
// UsesStart // UsesStart
Classes, SysUtils, LazLogger, FileUtil, Forms, Controls, Graphics, Dialogs, Classes, SysUtils, LazLoggerBase, FileUtil, Forms, Controls, Graphics, Dialogs,
LCLType, IDECommands, IDEWindowIntf, LazIDEIntf, MenuIntf LCLType, IDECommands, IDEWindowIntf, LazIDEIntf, MenuIntf
// UsesEnd // UsesEnd
; ;

View File

@ -6,7 +6,7 @@ interface
uses uses
Classes, SysUtils, Classes, SysUtils,
LazLogger, LazLoggerBase,
Controls, Forms, Controls, Forms,
LazIDEIntf, MenuIntf, IDECommands, IDEWindowIntf, BaseIDEIntf, LazIDEIntf, MenuIntf, IDECommands, IDEWindowIntf, BaseIDEIntf,
frmFileBrowser, frmConfigFileBrowser; frmFileBrowser, frmConfigFileBrowser;

View File

@ -20,7 +20,7 @@ uses
// LazUtils // LazUtils
UTF8Process, LazFileUtils, LazFileCache, UTF8Process, LazFileUtils, LazFileCache,
// IdeIntf // IdeIntf
ObjInspStrConsts, LazLogger, Menus; ObjInspStrConsts, LazLoggerBase, Menus;
const const
SubToolFPC = 'FPC'; SubToolFPC = 'FPC';

View File

@ -11,7 +11,7 @@ unit PropEditUtils;
interface interface
uses uses
Classes, SysUtils, TypInfo, LazLogger; Classes, SysUtils, TypInfo, LazLoggerBase;
type type
{ {

View File

@ -15,7 +15,7 @@ uses
fpjson, fpjson,
jsonparser, jsonparser,
BaseUnix, BaseUnix,
LazLogger, LazLoggerBase,
process, process,
dialogs, dialogs,
syncobjs, syncobjs,

View File

@ -20,7 +20,7 @@ uses
{$IFDEF WIN32} {$IFDEF WIN32}
Windows, Windows,
{$ENDIF} {$ENDIF}
LCLType, LCLIntf, LConvEncoding, LazFileUtils, LazUTF8, LazLogger; LCLType, LCLIntf, LConvEncoding, LazFileUtils, LazUTF8, LazLoggerBase;
type type
TUTF8Item=packed record TUTF8Item=packed record

View File

@ -6,7 +6,7 @@ interface
uses uses
Classes, SysUtils, MacroIntf, MacroDefIntf, forms, Controls, lazideintf, Classes, SysUtils, MacroIntf, MacroDefIntf, forms, Controls, lazideintf,
lazlogger, process ; LazLoggerBase, process ;
Type Type

View File

@ -6,7 +6,7 @@ interface
uses uses
Classes, SysUtils, Forms, Controls, ProjectIntf, CompOptsIntf, LazIDEIntf, IDEOptionsIntf, Classes, SysUtils, Forms, Controls, ProjectIntf, CompOptsIntf, LazIDEIntf, IDEOptionsIntf,
PJSDsgnOptions, PJSDsgnOptsFrame, LazLogger; PJSDsgnOptions, PJSDsgnOptsFrame, LazLoggerBase;
const const
ProjDescNamePas2JSWebApp = 'Web Application'; ProjDescNamePas2JSWebApp = 'Web Application';

View File

@ -15,7 +15,7 @@ uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, ComCtrls, Menus, Classes, SysUtils, Forms, Controls, Graphics, Dialogs, ComCtrls, Menus,
ActnList, LCLProc, Clipbrd, LazIDEIntf, PackageIntf, ProjectIntf, ActnList, LCLProc, Clipbrd, LazIDEIntf, PackageIntf, ProjectIntf,
ProjectGroupIntf, MenuIntf, IDEDialogs, IDEWindowIntf, LazFileUtils, ProjectGroupIntf, MenuIntf, IDEDialogs, IDEWindowIntf, LazFileUtils,
LazLogger, LazFileCache, ProjectGroupStrConst, ProjectGroup; LazLoggerBase, LazFileCache, ProjectGroupStrConst, ProjectGroup;
type type
TNodeType = ( TNodeType = (

View File

@ -8,7 +8,7 @@ interface
uses uses
Classes, SysUtils, IDEOptionsIntf, PackageIntf, ProjectIntf, LazFileUtils, Classes, SysUtils, IDEOptionsIntf, PackageIntf, ProjectIntf, LazFileUtils,
LazFileCache, LazMethodList, LazLogger; LazFileCache, LazMethodList, LazLoggerBase;
Type Type
TPGTargetType = ( TPGTargetType = (

View File

@ -40,7 +40,7 @@ uses
chmwriter, chmfilewriter, chmsitemap, chmwriter, chmfilewriter, chmsitemap,
{$ENDIF} {$ENDIF}
// LazUtils // LazUtils
LazLogger, LazUTF8, LazFileUtils, AvgLvlTree, LazLoggerBase, LazUTF8, LazFileUtils, AvgLvlTree,
// LazWiki // LazWiki
Wiki2HTMLConvert, Wiki2XHTMLConvert; Wiki2HTMLConvert, Wiki2XHTMLConvert;

View File

@ -84,7 +84,7 @@ interface
uses uses
Classes, SysUtils, WikiParser, laz2_DOM, LazFileUtils, laz2_XMLRead, Classes, SysUtils, WikiParser, laz2_DOM, LazFileUtils, laz2_XMLRead,
laz2_XMLWrite, LazLogger, WikiFormat; laz2_XMLWrite, LazLoggerBase, WikiFormat;
type type

View File

@ -25,7 +25,7 @@ unit Wiki2HTMLConvert;
interface interface
uses uses
Classes, SysUtils, Wiki2XHTMLConvert, WikiParser, LazLogger, laz2_DOM, Classes, SysUtils, Wiki2XHTMLConvert, WikiParser, LazLoggerBase, laz2_DOM,
LazUTF8; LazUTF8;
type type

View File

@ -27,7 +27,7 @@ interface
uses uses
Classes, SysUtils, Classes, SysUtils,
// LazUtils // LazUtils
laz2_XMLWrite, LazUTF8, laz2_DOM, LazLogger, LazFileUtils, AvgLvlTree, laz2_XMLWrite, LazUTF8, laz2_DOM, LazLoggerBase, LazFileUtils, AvgLvlTree,
// CodeTools // CodeTools
BasicCodeTools, KeywordFuncLists, BasicCodeTools, KeywordFuncLists,
// LazWiki // LazWiki

View File

@ -29,7 +29,7 @@ interface
uses uses
Classes, SysUtils, Laz_AVL_Tree, Classes, SysUtils, Laz_AVL_Tree,
// LazUtils // LazUtils
LazFileUtils, laz2_XMLRead, laz2_DOM, LazLogger, LazUTF8, AvgLvlTree, LazFileUtils, laz2_XMLRead, laz2_DOM, LazLoggerBase, LazUTF8, AvgLvlTree,
// Codetools // Codetools
BasicCodeTools, KeywordFuncLists, BasicCodeTools, KeywordFuncLists,
// LazWiki // LazWiki

View File

@ -34,7 +34,7 @@ unit WikiParser;
interface interface
uses uses
Classes, SysUtils, laz2_XMLRead, laz2_DOM, LazLogger, LazUTF8, Classes, SysUtils, laz2_XMLRead, laz2_DOM, LazLoggerBase, LazUTF8,
BasicCodeTools, KeywordFuncLists; BasicCodeTools, KeywordFuncLists;
const const