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
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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -31,7 +31,7 @@ interface
uses
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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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