Intro Download and install Frequently Asked Questions Tips and tricks

Homepage







© J.C. Kessels 2009
MyDefrag Forum
May 23, 2013, 08:18:06 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Debug log to memory instead of disk  (Read 628 times)
dev0
JkDefrag Senior
****
Posts: 27


View Profile
« on: September 30, 2009, 08:05:27 am »

How about putting the debug log in a memory buffer then displaying it as part of the GUI, instead of always writing it to disk. This would reduce disk IO, increase performance, remove yet another locked file, plus allow the user to see in real-time what was going on behind the scenes. 
Logged
jeroen
Administrator
JkDefrag Hero
*****
Posts: 7155



View Profile WWW
« Reply #1 on: September 30, 2009, 08:11:36 am »

The debug log is exactly that - a debug log. It is not intended for users and not documented. It should not be in memory because then it would be lost in case of a crash. For user output see the statistics window and the SetStatisticsWindowText script setting, and the AppendLogfile and WriteLogfile commands.
Logged
dev0
JkDefrag Senior
****
Posts: 27


View Profile
« Reply #2 on: September 30, 2009, 08:21:33 am »

I'd still like a way of seeing in real-time what MyDefrag is doing, much in the same format as it is in the most verbose logging method.  Opening (or reloading) the log file and scrolling to the bottom is both cumbersome and not real-time.  From what I can tell, this isn't doable with the current facilities provided in SetStatisticsWindowText, but perhaps this could be added as a !DEBUGTAILnn! (nn being a buffer of lines from the end of the log)
Logged
jeroen
Administrator
JkDefrag Hero
*****
Posts: 7155



View Profile WWW
« Reply #3 on: September 30, 2009, 08:41:20 am »

I'm sorry but I don't think it's useful to display more detail than what is already displayed in the text just above the diskmap. For looking at the end of a logfile type "Windows logfile tail" or something like that in Google, there are many utilities available that will automatically scroll and show the end of a logfile.
Logged
dev0
JkDefrag Senior
****
Posts: 27


View Profile
« Reply #4 on: September 30, 2009, 08:46:55 am »

Thank you for your feedback.  I was hoping I wouldn't have to use another 3rd party utility specifically for this purpose, since I use MyD on many systems.  I don't think it would be very difficult to add maybe a 3rd view option "debuglog" to view the current debuglog state.  Sorry for being persistent on this topic.
« Last Edit: September 30, 2009, 08:50:17 am by dev0 » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!