Difference between revisions of "Autologger"

From City of Hope MUSH
Jump to navigation Jump to search
imported>Eric
imported>Dashiel
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Hello everyone!
 
  
For people not having an autologger enabled on MUSHclient but wanting to, 1st tap "Log Session" under File (top left of the program),  Then press ALT+Enter, to open up "World properties" and click "Logging" Then set up the path file and in the "File name" box place this code "mylog-d-+myjob/add 805=For people not having an auto logger enabled on MUSHclient but wanting to, 1st tap "Log Session" under File (top left of the program), %t Then press ALT+Enter, to open up "World properties" and click "Logging" Then set up the path file and in the "File name" box place this code "mylog-%d-%m-%Y.log.txt" (Without qoutes.". %t This way you will have it auto logging your sessions and it will make a new log file every day. Marked with the date of the log. %r%r Though I am sure the code can also be used on other clients as well.-Y.log.txt" (Without qoutes.".          This way you will have it auto logging your sessions and it will make a new log file every day. Marked with the date of the log.
 
  
Though I am sure the code can also be used on other clients as well.
+
== MUSHClient ==
  
 +
For people not having an '''autologger''' enabled on '''MUSHclient''' but wanting to!
 +
 +
# tap "'''Log Session'''" under File (top left of the program)
 +
# press '''ALT+Enter''', to open up "'''World properties'''" and click "'''Logging'''"
 +
# Then set up the path file
 +
# 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.)
  
  

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!