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 » U++ Library support » U++ Core » How to prevent .log file creation?
How to prevent .log file creation? [message #6514] Wed, 15 November 2006 18:49 Go to next message
yeohhs
Messages: 75
Registered: November 2005
Location: Malaysia
Member
For MyUppApp.exe built in release mode, I noticed that every time the program exits, there is a myuppapp.log file. How do I disable the creation of this myuppapp.log file? And also its .log.old file?

Thanks for any ideas or suggestions. Smile

Best Regards,
Yeoh
Re: How to prevent .log file creation? [message #6515 is a reply to message #6514] Wed, 15 November 2006 19:07 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Sorry, this is most likely a bug in uppsrc - usually, it should not .log anything. But sometimes, in development releases, I forget to delete some LOGs and TIMINGs in the sources....

What is in the .log?

Mirek
Re: How to prevent .log file creation? [message #6518 is a reply to message #6514] Thu, 16 November 2006 03:51 Go to previous messageGo to next message
yeohhs
Messages: 75
Registered: November 2005
Location: Malaysia
Member
myuppapp.log contains:
* C:\upp\out\MSC8.Gui\MyUppApp.exe 16.11.2006 01:50:08, user: Administrator

TIMING ExcludeClip    :   0.0 us -   0.0 us (  0.0 us / 5 ), min:   0.0 us, max:   0.0 us, nesting: 1 - 5
TIMING End            : 977.4 us -   6.1 us (  1.0 ms / 161 ), min:   0.0 us, max:   1.0 ms, nesting: 1 - 161
TIMING Clipoff        :   0.0 us -   0.0 us (  0.0 us / 54 ), min:   0.0 us, max:   0.0 us, nesting: 1 - 54
TIMING DrawRect       :   0.0 us -   0.0 us (  0.0 us / 75 ), min:   0.0 us, max:   0.0 us, nesting: 1 - 75
TIMING Offset         :   0.0 us -   0.0 us (  0.0 us / 96 ), min:   0.0 us, max:   0.0 us, nesting: 1 - 96
TIMING Intersect      :   0.0 us -   0.0 us (  0.0 us / 65 ), min:   0.0 us, max:   0.0 us, nesting: 1 - 65
TIMING Clip           :   0.0 us -   0.0 us (  0.0 us / 11 ), min:   0.0 us, max:   0.0 us, nesting: 1 - 11
TIMING Begin          : 977.4 us -   6.1 us (  1.0 ms / 161 ), min:   0.0 us, max:   1.0 ms, nesting: 1 - 161
TIMING IsPainting     :   7.0 ms -  81.3 us (  7.0 ms / 86 ), min:   0.0 us, max:   3.0 ms, nesting: 1 - 86
Re: How to prevent .log file creation? [message #6533 is a reply to message #6515] Thu, 16 November 2006 16:56 Go to previous messageGo to next message
yeohhs
Messages: 75
Registered: November 2005
Location: Malaysia
Member
luzr wrote on Thu, 16 November 2006 02:07

But sometimes, in development releases, I forget to delete some LOGs and TIMINGs in the sources....



I found it in this source file: Core\Debug.cpp Smile

TimingInspector::~TimingInspector() {
//	ASSERT(nesting_depth == 0); // troubles in MT!
	if(this == &s_zero()) return;
//	StdLog() << Dump() << "\r\n";  // prevent .log creation 
}

After commenting out the last line, the .log file is no longer created.

Best Regards,
Yeoh
Re: How to prevent .log file creation? [message #6534 is a reply to message #6518] Thu, 16 November 2006 17:01 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Fixed.

You can do a quick patch, DrawOpWin32.cpp:

#define LTIMING(x) RTIMING(x)

to

#define LTIMING(x) // RTIMING(x)

Mirek
Re: How to prevent .log file creation? [message #6535 is a reply to message #6514] Thu, 16 November 2006 17:24 Go to previous message
yeohhs
Messages: 75
Registered: November 2005
Location: Malaysia
Member
Thanks!
Previous Topic: SHGetFolderPath(NULL, CSIDL_APPDATA, NULL, 0, szPath)
Next Topic: SetExeTitle not availeable in 611-dev2
Goto Forum:
  


Current Time: Tue Apr 23 09:28:13 CEST 2024

Total time taken to generate the page: 0.01493 seconds