It is currently Fri Aug 01, 2014 4:22 pm




Post new topic Reply to topic  [ 4 posts ] 
 Log file viewer 
Author Message
General
General

Joined: Tue May 31, 2011 6:27 am
Posts: 313
Location: Minnesota
Post Log file viewer
I've been building some scripts in the gateway, but you have to dig into the wrapper.log file to see the output of any 'print' statements. Opening and closing the log file gets very annoying so I built a simple log viewer that will auto scroll through a file as new items are added.

I present the amazingly simple Log Scroller:
Log Scroller


Fri Feb 24, 2012 8:50 pm
Profile
General
General

Joined: Tue Jan 24, 2012 10:58 am
Posts: 231
Post Re: Log file viewer
Hi,

i can recommend baretail (http://www.baremetalsoft.com/baretail/ for this purpose. The exe is quite small and requires no installation. The free version supports custom highlighting, and it is really fast, even with big logs.


Sat Feb 25, 2012 2:10 am
Profile
Moderator
Moderator

Joined: Wed Apr 18, 2007 11:00 am
Posts: 645
Location: Sacramento Ca.
Post Re: Log file viewer
I use WinTail, but I've never gotten into any of the extra features. It automatically scrolls to the bottom of the file every time it updates. It's a nice way to view the wrapper.

_________________
Robert McKenzie
Inductive Automation
Technical Support


Mon Feb 27, 2012 4:28 pm
Profile WWW
General
General

Joined: Fri Aug 03, 2007 11:39 am
Posts: 626
Location: Devon, England
Post Re: Log file viewer
Why use a copy when you can use the original :wink:

Any Posix-compliant operating system (Linux, OSX etc.) will have a version of tail.

Simply run
Code:
tail -f -n 20 filename
to follow the last 20 lines of the log file in a terminal window.

_________________
Al
DataCapture Ltd.

www.datacap.co.uk


Thu Mar 01, 2012 1:32 am
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: