Menu

#2 Configuring from XML file produces huge EXEs

open
log4e (3)
5
2012-09-19
2003-07-02
No

I have a program which, compiled in boost mode with
SmartEiffel, produces an executable (EXE) of 186KB.

If I use log4e in the "manual mode" config (all done in
Eiffel code) like in log4e_manual_config.e, the EXE size
goes to 206KB. Not bad, just 20KB extra for logging.
Unfortunately I can't change the logging unless I change
the source and recompile, which is not nice.

If I use log4e in the mode where the config is done via
an XML file, and the Eiffel code is like
log4e_xml_config.e, the EXE size jumps to 760MB !!
That's way too big. 500KB just to be able to read XML
format ??

Is there a way to have my configuration flexible enough,
in an external file, while being able to have small
executables ? I don't mind having a normal INI file (TXT
format). I don't want to have to pay such a high price
just for XML support. I just want to log, having the cfg
file in XML format is just a small detail, not that much
relevant. INI would be just as good.

--mqm

Discussion


Log in to post a comment.

MongoDB Logo MongoDB