Results 1 to 4 of 4

Thread: Creating a Logging module

  1. #1
    Join Date
    Feb 2013

    Default Creating a Logging module

    I'm about to start on a module that will be used to log certain stats every few seconds, however I can't seem to find any examples to help me begin the process. Everything I have found utilizes events or HTTProviders that fire off when something happens or a user connects to a URL. How might I go about just beginning the process(creating the project in the IDE, the new module wizard gives me options to create event methods, but nothing that just runs once) of just creating a module that would just run once at server start time and I would just run a loop every few seconds to log the info that I need?

    Appreciate the help, let me know if I didn't describe what I'm looking for well enough.

  2. #2


    I don't have my own code in front of me to reference, but you would start by creating a class that implements IServerListener (and adding it to the ServerListeners in Server.xml), and that class should have a Timer private variable. You need another class that subclasses TimerTask that will do the logging functionality. The Timer will be set to run() the TimerTask object and that's where you do your logging code.

    If you need more specifics just ask.

  3. #3
    Join Date
    Dec 2007


    Here is a good starting place:


  4. #4
    Join Date
    Feb 2013


    Perfect, I think I can wrap my head around this now, thanks guys.

Similar Threads

  1. Logging custom module to a different file
    By maugzoide in forum General Forum
    Replies: 7
    Last Post: 10-03-2014, 10:52 AM
  2. Module PushPublish: Error creating push publishing implementation
    By Jhermand in forum Live Streaming and Encoders
    Replies: 6
    Last Post: 03-24-2014, 06:48 AM
  3. logging in extension module
    By jhjwind in forum Server-side Modules and Code Samples Discussion
    Replies: 1
    Last Post: 04-11-2012, 02:46 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts