Difference between revisions of "Autologger"

From City of Hope MUSH
Jump to navigation Jump to search
imported>Eric
imported>Dashiel
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
Hello everyone!
 
  
  
--------------'''MUSHclient'''------------------------
+
== MUSHClient ==
 +
 
 
For people not having an '''autologger''' enabled on '''MUSHclient''' but wanting to!
 
For people not having an '''autologger''' enabled on '''MUSHclient''' but wanting to!
  
1. tap "'''Log Session'''" under File (top left of the program)
+
# tap "'''Log Session'''" under File (top left of the program)
2. press '''ALT+Enter''', to open up "'''World properties'''" and click "'''Logging'''"
+
# press '''ALT+Enter''', to open up "'''World properties'''" and click "'''Logging'''"
3. Then set up the path file
+
# Then set up the path file
4. In the "'''File name'''" box place this code "'''mylog-%d-%m-%Y.log.txt'''" (Without quotes.)
+
# In the "'''File name'''" box place this code "'''mylog-%d-%m-%Y.log.txt'''" (Without quotes.)
  
Now you will have '''MUSHclient''' auto logging your sessions while making a new log file every day. Marked with that days date.
+
Now you will have '''MUSHclient''' auto logging your sessions while making a new log file every day, marked with that day's date.
  
 
------------------------------------------------------
 
------------------------------------------------------
  
I am sure the code itself can also be used on other clients as well. And thus I would appreciate if people with different clients could check and see if this code also works for them, and if not. What does. This could then be added to the Wiki page.
+
I am sure the code itself can also be used on other clients as well. And thus I would appreciate if people with different clients could check and see if this code also works for them, and if not, what does. This could then be added to the Wiki page.
  
 
With compliments from Raul: https://www.gammon.com.au/scripts/doc.php?dialog=IDD_PREFS_P4
 
With compliments from Raul: https://www.gammon.com.au/scripts/doc.php?dialog=IDD_PREFS_P4
Some more in dept information about the topic and some more customization options.  
+
Some more in depth information about the topic and some more customization options.  
 
-----------------------------------------------------
 
-----------------------------------------------------
  
 +
 +
 +
== Atlantis ==
 +
 +
(This was taken from the Atlantis forums somewhere!  Credit likely to Sparks.)
 +
 +
Two simple global events, and a single userconf variable, will enable a very convenient autologging feature.
 +
 +
'''Event 1'''
 +
 +
Conditions:
 +
* World was just Connected
 +
* Variable 'userconf.autolog' is 'yes'
 +
Actions:
 +
* Open logfile: ~/Documents/Logs/%{world.game}/%{world.character}/%{datetime.year}-%{datetime.month}/%{datetime.date}.txt
 +
 +
'''Event 2'''
 +
 +
Conditions:
 +
* World was just Disconnected
 +
* Variable 'userconf.autolog' is 'yes'
 +
Actions:
 +
* Close all logfiles
 +
 +
Then just add an 'autolog' variable -- set to 'yes' -- to any world/character you want automatically logged. Logfiles will automatically be created in a conveniently sorted path, such as ~/Documents/Logs/OGR/Sparks/2006-07/2006-07-21.txt, and if you log in more than once a day, it will simply append to the previous log. Obviously you can change how the path is set up to log in a different location, but I quite like this method.
 +
 +
(That said, HTML logfiles will not append, but will create new ones, if you are using HTML instead of text for logging.)
  
  

Latest revision as of 14:35, 9 February 2018


MUSHClient

For people not having an autologger enabled on MUSHclient but wanting to!

  1. tap "Log Session" under File (top left of the program)
  2. press ALT+Enter, to open up "World properties" and click "Logging"
  3. Then set up the path file
  4. In the "File name" box place this code "mylog-%d-%m-%Y.log.txt" (Without quotes.)

Now you will have MUSHclient auto logging your sessions while making a new log file every day, marked with that day's date.


I am sure the code itself can also be used on other clients as well. And thus I would appreciate if people with different clients could check and see if this code also works for them, and if not, what does. This could then be added to the Wiki page.

With compliments from Raul: https://www.gammon.com.au/scripts/doc.php?dialog=IDD_PREFS_P4 Some more in depth information about the topic and some more customization options.



Atlantis

(This was taken from the Atlantis forums somewhere! Credit likely to Sparks.)

Two simple global events, and a single userconf variable, will enable a very convenient autologging feature.

Event 1

Conditions:

  • World was just Connected
  • Variable 'userconf.autolog' is 'yes'

Actions:

  • Open logfile: ~/Documents/Logs/%{world.game}/%{world.character}/%{datetime.year}-%{datetime.month}/%{datetime.date}.txt

Event 2

Conditions:

  • World was just Disconnected
  • Variable 'userconf.autolog' is 'yes'

Actions:

  • Close all logfiles

Then just add an 'autolog' variable -- set to 'yes' -- to any world/character you want automatically logged. Logfiles will automatically be created in a conveniently sorted path, such as ~/Documents/Logs/OGR/Sparks/2006-07/2006-07-21.txt, and if you log in more than once a day, it will simply append to the previous log. Obviously you can change how the path is set up to log in a different location, but I quite like this method.

(That said, HTML logfiles will not append, but will create new ones, if you are using HTML instead of text for logging.)



With greetings from Eric!