Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » [SOLVED] Logging and LOG_APPEND
[SOLVED] Logging and LOG_APPEND [message #47474] Fri, 20 January 2017 15:01 Go to next message
Giorgio is currently offline  Giorgio
Messages: 218
Registered: August 2015
Experienced Member
Hi there,
I am implementing a simple logging facility in an application. I realized that every time the application is started, the log file is cleared. So, I found in the documentation that I have to setup the logfile using StdLogSetup(LOG_APPEND). I did so, but now messages created with RLOG are not logged. What am I doing wrong?
Regards,
Gio

[Updated on: Mon, 23 January 2017 07:59]

Report message to a moderator

Re: Logging and LOG_APPEND [message #47477 is a reply to message #47474] Fri, 20 January 2017 21:31 Go to previous messageGo to next message
Klugier is currently offline  Klugier
Messages: 1075
Registered: September 2012
Location: Poland, Kraków
Senior Contributor
Hello,

For me it looks like the bug, can you post sample code to reproduce that bug - it would be helpful?

Sincerely,
Klugier


U++ - one framework to rule them all.
Re: Logging and LOG_APPEND [message #47480 is a reply to message #47474] Fri, 20 January 2017 21:59 Go to previous messageGo to next message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

Hi Giorgio,

If I remember correctly, you just have to set all the behavior you need, including the defaults. Default is just LOG_FILE, so in your case you should specify StdLogSetup(LOG_APPEND|LOG_FILE).

Best regards,
Honza
Re: Logging and LOG_APPEND [message #47481 is a reply to message #47474] Fri, 20 January 2017 22:15 Go to previous messageGo to next message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

Also: Are you using reasonably recent version of U++? There has been bug like what you report about 3 years ago (http://www.ultimatepp.org/redmine/issues/537), but that should be fixed for a long time...

Honza
Re: Logging and LOG_APPEND [message #47493 is a reply to message #47480] Mon, 23 January 2017 07:58 Go to previous message
Giorgio is currently offline  Giorgio
Messages: 218
Registered: August 2015
Experienced Member
Quote:
in your case you should specify StdLogSetup(LOG_APPEND|LOG_FILE).


It was that, thanks.

[Updated on: Mon, 23 January 2017 07:58]

Report message to a moderator

Previous Topic: How to lighten the process when draw a large amount image?
Next Topic: [SOLVED] Converting from 'Upp::Value' to 'char'
Goto Forum:
  


Current Time: Thu Mar 28 22:44:50 CET 2024

Total time taken to generate the page: 0.01351 seconds