Looking to run debugview as a service so it runs in the background and collects daily logs

Posted on 2008-11-13
Last Modified: 2012-05-05
Would like to find a way where i can have debug view always running saving log files to a folder on the c drive.

has anyone been able to achieve this.

Question by:funnymanmike
    LVL 67

    Assisted Solution

    Log file wrapping / changing each day can be switched on cmdline, so the simple task will be to start it in the background. I didn't try this, but you could use a Task scheduled for system startup to start dbgview.
    LVL 5

    Author Comment

    do you happen to have the command line?
    LVL 16

    Accepted Solution

    you may install Windows Resource Kit and create your own service with any executable program
    LVL 67

    Assisted Solution

    @ai_ja_nai: Yes, this was an additional thought of mine, to use srvany ...
    @funnymanmike: just call dbgview /?  to see all options. E.g.

    dbgview /t /f /c /l logfile.txt /a /n
    LVL 51

    Expert Comment

    by:Mark Wills
    Part of the sysinternals collection...  4.76 is the current version. Think you will need to download and lookup the on-line help...

    Might need to do a small trick with the help - need to right click on the chm file and select "unblock"

    Extract abourt starting :

    Starting DebugView
    Simply execute the DebugView program file (dbgview.exe) and DebugView will immediately start capturing debug output. Note that if you wish to capture kernel-mode debug output under Windows NT/2K, you must have the load driver privilege.

    Menus, hot-keys, or toolbar buttons can be used to clear the window, save the monitored data to a file, search output, and change the window font. In addition, you can toggle on and off capture of kernel or Win32 debug output.

    As events are printed to the output, they are tagged with a sequence number. If DebugViews internal buffers are overflowed during extremely heavy activity, this will be reflected with gaps in the sequence number.

    Each time you exit DebugView it remembers the position of the window, the widths of the output columns, the font selection, configured filters, and the time-stamp mode.

    Command-line Options
    DebugView supports several command-line options that let you modify its behavior when it starts. Several are relevant when starting DebugView as a client on a system that will send debug output across the network to a DebugView instance that displays the output on another computer, and are described in the Remote Monitoring section. However, others modify the behavior of DebugView when you run it to display output, and are useful if you want to execute DebugView from a batch file or logon script and want it to capture debug output as soon as it starts. You can have DebugView display all of its command-line options by using the /? option.

    Here are the command-line options supported when you run DebugView in non-client mode:

    debugview [/f] [/t] [/l Logfile [/a]  [[/m nnn [/w]] | [/n [/x]]] [/h nn]] [Logfile]

    The /f option has DebugView skip the filter confirmation dialog when filters were active the previous execution.

    The /t option has DebugView launch into the system tray, rather than as a window. This has DebugView capture debug output as soon as it starts while not taking up screen real-estate. DebugView's tray behavior is further described in the Running in the Tray section.

    The /l option directs DebugView to begin writing output to the indicated logfile as soon as DebugView executes. The /m option allows you to specify a size limit (in MB) for the log file, and the /a option has DebugView append to the logfile if it already exists, rather than overwrite it and /w has the log file wrap when it reaches the maximum size you specify. The /n switch has DebugView create a new log file, named with the date, each day. If you include /x with /n the display clears when a new log file is created.

    Finally, the /h switch controls the history depth, which is the count of most recent output lines shown in the DebugView display. These options correspond to the logfile commands available through menu items when DebugView is running, which are described in Saving and Print.

    Featured Post

    Are your corporate email signatures appalling?

    Is it scary how unprofessional your email signatures look? Do users create their own terrible designs and give themselves stupid job titles? You can make this a lot easier for yourself by choosing an email signature management solution from Exclaimer today.

    Join & Write a Comment

    Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
    If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
    As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
    The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now