Jump to content

Write to log


VeTaL
 Share

Recommended Posts

And how can i write without going to the next string?

 

 

I'm working on Pixel's profiler: http://leadwerks.com/werkspace/index.php?/files/file/142-profiling-code-for-c/

 

I edited

void dumpprint(const char*Text)
{
::OutputDebugString(Text); 
printf(Text);
AppLog(Text);
};

 

and in Output i get

=========== Profile ==================

 

d:\work\test\game\core\clevelmanager.cpp(366): 0: 1x 3.86s 3.86s 100% TestProfiler

 

Total: 3.86s

 

======================================

 

but in log i have

=========== Profile ==================

 

d:\work\test\game\core\clevelmanager.cpp

(

366

):

 

 

 

0

:

1

x

 

 

 

 

 

 

3.86

s

 

3.86

s

 

100

%

TestProfiler

 

 

Total:

3.86

s

 

 

======================================

Working on LeaFAQ :)

Link to comment
Share on other sites

You need to collect all strings into a total string and then AppLog(totalstring). You can probably look for the '\n' character and finish the total string when you find it.

Ryzen 9 RX 6800M ■ 16GB XF8 Windows 11 ■
Ultra ■ LE 2.53DWS 5.6  Reaper ■ C/C++ C# ■ Fortran 2008 ■ Story ■
■ Homepage: https://canardia.com ■

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...