Jump to content

Exporting and parsing log file.


Recommended Posts

There was a program for Classic Mac OS a number of years ago that would parse the Operations Log and the Report, but that's likely long gone (it wasn't very good). But it would be trivial for a smart scripter to create a way to parse the log text using existing technologies.

 

The icons that Retrospect displays in the log are represented by simple text strings in the underlying ACSII;

$[xyz].

 

Most of the text in the brackets is simple [31], [32], etc, while a few places is a bit more cryptic

[*!s312,,14,+3]

 

Unless your file naming scheme includes these strings, and those files were likely to show up in the log, a find/replace for the observable set of codes would allow formatting of the text however you want.

Link to comment
Share on other sites

Okay. I figured something out here that no one mentioned, and I had never seen before. There is a file in Library > Preferences > Retrospect called "Operations Log". This file contains all that text.

 

So, if someone comes looking for this again, the easiest answer is:

 

There is no export, but the program keeps it's own copy of the log in Library > Preferences > Retrospect. This file can be opened in a text editor app.

 

Thanks guys. I'll let you know if we have more trouble from here.

 

--Dolf

Link to comment
Share on other sites

Quote:

I figured something out here that no one mentioned, and I had never seen before.

 


 

Oh, sorry. Seemed so obvious I didn't think to point it out... <grin>

 

As for the location, the correct unix way to note the exact file is:

 

"/Library/Preferences/Retrospect/Operations Log"

 

The quotes are there to handle the space in the file name; without the quotes the exact file is:

 

/Library/Preferences/Retrospect/Operations\ Log

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.

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.

Loading...
×
×
  • Create New...