Recent

Author Topic: [SOLVED] suddenly i have log file from application..  (Read 2978 times)

Eleazar

  • New Member
  • *
  • Posts: 26
[SOLVED] suddenly i have log file from application..
« on: April 07, 2021, 02:27:13 pm »
Hi,
I don't know what I have changed exactly, but nowadays i get log files from the application I wrote; also when run as single executable. Happens when I build with gdb or with fp debugger. I have looked in fpc.cfg and lots of other settings. Can't find it.
It logs:
STATUS INFO : @ 14:16:17 MSG : Starting Application IN : Initialization
STATUS INFO : @ 14:16:21 MSG : Terminating Application IN : Finalization
I'm running Lazarus 64 bits 2.1.0 with FPC 3.2.0.
Who knows where this is coming from?
It also looks like gdb has become much slower...
Greetings, Leo
« Last Edit: April 08, 2021, 12:57:31 am by Eleazar »

Eleazar

  • New Member
  • *
  • Posts: 26
Re: suddenly i have log file from application..
« Reply #1 on: April 08, 2021, 12:56:48 am »
OK, found it. Somewhere, in one of the units in a package I use, I had added 'logger' (logger.pas in FPC) to the uses clause. This was probably with the intention to use it for debugging. I never used it however. Then I forgot about it... Three weeks later I noticed this annoying problem of the log files.
Glad I found it...  ::) 

strubri

  • New member
  • *
  • Posts: 7
Re: [SOLVED] suddenly i have log file from application..
« Reply #2 on: March 24, 2025, 08:54:13 am »
Thank you so much for this post. Saved me a tonne of time!!
I'd accidentally included logger into list of units.

CharlyTango

  • Full Member
  • ***
  • Posts: 105
Re: [SOLVED] suddenly i have log file from application..
« Reply #3 on: March 25, 2025, 11:29:56 am »
thats why compiler directives exist

uses
  ...
{$IFDEF DEBUG}
  , logging
{$ENDIF}
;
Lazarus stable, Win32/64

 

TinyPortal © 2005-2018