Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quick.Logger.Intf.pas generates 11 E2266 build errors on the overload #129

Open
vesnx opened this issue May 2, 2024 · 2 comments
Open

Comments

@vesnx
Copy link

vesnx commented May 2, 2024

When compiling with delphi 12.1 I get the following error:

[dcc64 Error] Quick.Logger.Intf.pas(71): E2266 Only one of a set of overloaded methods can be published

Adding public seems to fix it.

TNullLogger = class(TInterfacedObject,ILogger)
    public
    procedure Info(const aMsg : string); overload;
    procedure Info(const aMsg : string; aParams : array of const); overload;
    procedure Succ(const aMsg : string); overload;
    procedure Succ(const aMsg : string; aParams : array of const); overload;
    procedure Done(const aMsg : string); overload;
    procedure Done(const aMsg : string; aParams : array of const); overload;
    procedure Warn(const aMsg : string); overload;
    procedure Warn(const aMsg : string; aParams : array of const); overload;
    procedure Error(const aMsg : string); overload;
    procedure Error(const aMsg : string; aParams : array of const); overload;
    procedure Critical(const aMsg : string); overload;
    procedure Critical(const aMsg : string; aParams : array of const); overload;
    procedure Trace(const aMsg : string); overload;
    procedure Trace(const aMsg : string; aParams : array of const); overload;
    procedure Debug(const aMsg : string); overload;
    procedure Debug(const aMsg : string; aParams : array of const); overload;
    procedure &Except(const aMsg : string; aValues : array of const); overload;
    procedure &Except(const aMsg, aException, aStackTrace : string); overload;
    procedure &Except(const aMsg : string; aValues: array of const; const aException, aStackTrace: string); overload;
    procedure &Except(MsgObject : TObject); overload;
  end;
@fsiek
Copy link

fsiek commented Sep 9, 2024

Same here with Delphi 11.1 but only for Windows 64 bit as platform. Compiling the same application for Windows 32 bit is OK.
E2266

The strange thing is, the Multilogger Delphi sample is working OK for 32 and 64 bit. No errors.

@exilon
Copy link
Owner

exilon commented Oct 7, 2024

I don't understand. TNullLogger properties are public, not published. Which QuickLogger and QuickLib version are you using?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants