Jump to content

Logging


Magick

Recommended Posts

You will need to create the folder titled Logs in your session folder first for this to function.  File names will have the example format: Default 19Nov17.

To change logging characters on the fly, use the logcharacter alias. Eg: logcharacter Magick

Note: This class normally holds my @character variable, so if you're also using my blademaster class, you can remove either, if you choose.  I recommend keeping this one and deleting the one in the blademaster class.

As it currently sits, this class will automatically log your session whenever you connect to the MUD, even if the class was disabled before closing Cmud.  Note: This is your initial connection after your session selection, this does not include reconnection.

<class name="Logging" initenable="true" id="2508">
  <event event="OnConnect" priority="21030" id="2103">
    <value>#LOG  %concat(Logs\@Character," ",%time(d),%time(mmm),%time(y))</value>
  </event>
  <event event="OnDisconnect" priority="21040" id="2104">
    <value>#TI 0
#LOG</value>
  </event>
  <var name="Character" id="2105">Default</var>
  <alias name="changecharacter" id="2506">
    <value>Character = %-1</value>
  </alias>
  <alias name="logcharacter" id="2509">
    <value>Character = %-1
#LOG  %concat(Logs\@Character," ",%time(d),%time(mmm),%time(y))</value>
  </alias>
</class>

 

Link to comment
Share on other sites

×
×
  • Create New...