Difference between revisions of "Logging helper"

From City of Hope MUSH
Jump to navigation Jump to search
(Created page with "Category:Unofficial <b>Note:</b> This guide was written by a player. It is not officially sanctioned by staff. While best attempts have been made at accuracy, it is possi...")
 
m
Line 4: Line 4:
  
 
This is intended as a repository of scripts that clean-up logs. They rely on the assumption that you are logging everything, and that the logs of each character goes into a separate file. To run these scripts, you will need access to typical command-line tools, which should be built-in to any Linux or OS X system.
 
This is intended as a repository of scripts that clean-up logs. They rely on the assumption that you are logging everything, and that the logs of each character goes into a separate file. To run these scripts, you will need access to typical command-line tools, which should be built-in to any Linux or OS X system.
 +
 +
For help logging from your client, see [[Auto_Logging_Helper|Auto Logging Helper]]
  
 
=== Marking Logs ===
 
=== Marking Logs ===
Line 16: Line 18:
  
 
Replace '#' with an appropriate number for other unique marker for the scene.
 
Replace '#' with an appropriate number for other unique marker for the scene.
 +
 +
=== Extracting Marked Logs ===
  
 
Extract scene log from raw log and print to screen:
 
Extract scene log from raw log and print to screen:

Revision as of 08:59, 19 October 2020


Note: This guide was written by a player. It is not officially sanctioned by staff. While best attempts have been made at accuracy, it is possibly inaccurate or out-of-date. If you see something that should be changed, please contact Bobbi on MUSH.

This is intended as a repository of scripts that clean-up logs. They rely on the assumption that you are logging everything, and that the logs of each character goes into a separate file. To run these scripts, you will need access to typical command-line tools, which should be built-in to any Linux or OS X system.

For help logging from your client, see Auto Logging Helper

Marking Logs

When you start a scene:

think SCENE#START

When you end a scene:

think SCENE#END

Replace '#' with an appropriate number for other unique marker for the scene.

Extracting Marked Logs

Extract scene log from raw log and print to screen:

awk '/SCENE#START/,/SCENE#END/' filename

Extract scene log from raw log into new file:

awk '/SCENE#START/,/SCENE#END/' filename > newfilename

This will give you everything that happened between when you set those markers.

Coming soon: ways to automatically remove various OOC output.