#1 2019-04-06 11:09:27

tbo
Member
Registered: 2015-04-20
Posts: 336

Compiler errors when I undefined WITHLOG

Hello,

if I undefine {.$define WITHLOG} in the file Synopse.inc, I get a lot of
compiler errors. There are some places in the source code where access
to SynLog was not enclosed by WITHLOG.

Delphi XE, mORMot: 1.18.4299

With best regards

Offline

#2 2019-04-08 06:54:47

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,242
Website

Re: Compiler errors when I undefined WITHLOG

Undefining WITHLOG is a not supported yet: it has no benefit in practice.
It is documented as such in Synopse.inc:

{$define WITHLOG}
// if defined, logging will be supported via the TSQLLog family
// - should be left defined: TSQLog.Family.Level default setting won't log
// anything, so there won't be any noticeable performance penalty to have
// this WITHLOG conditional defined, which is expected by high-level units
// of the framework, like DDD or UI

Offline

Board footer

Powered by FluxBB