0

I would like to look at some log files solely via the console on a standard Windows 7 machine. The logs are created by schedulded tasks and I find it a hazzle to use VNC for this purpose.
What technology should I look at? Powershell, Cygwin via ssh or something else? The log files are written using log4Net - thus there might also be an easy way to reconfigure it to create events or something else for remote display.

3 Answers 3

1

In PowerShell, there is an arguably effective method. powershell -c "get-content \path\to\your\log\name.log -wait". The last parameter is important. I use this all the time in Windows 7 and to watch files remotely from a Windows 7/2k8 box on older versions of the OS. I tried to find old info that says PS versions < 2 had performance problems with this, but it has worked very reliably for me.

0

Ok - the easiest and cleanest way is to use the Telnet appender for log4Net.

2
  • 2
    Every time someone seriously mentions Telnet a puppy dies for lack of security.
    – gWaldo
    Sep 16, 2010 at 12:23
  • This in my own private network with no connection to Internet and firewalled everywhere and it is just a logging - lack of security is if you log the wrong stuff.
    – weismat
    Sep 16, 2010 at 13:26
0

I'm not sure what you mean by "Console". Console can mean just about anything. The CMD.exe and Powershell window are text-based Consoles, while MMC (and all of it's snap-ins) are GUI-based consoles.

If you want to use the GUI, open Event Viewer from the Administrative tools or open MMC.exe (it helps to run it as a user with admin access - I prefer using runas /user:domain\adminusername mmc) and add the Event Viewer Snap-In. At the root of Event Viewer where it says "Event Viewer (Local)", right-click and select "Connect to another computer...", enter the target computer name, and voila! You can now view the other computer's Event Logs as if you were sitting at that machine.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .