Planeshift
|
This class generates logs at a particular interval that has information that can be displayed later on a website. More...
#include <serverstatus.h>
Static Public Member Functions | |
static bool | Initialize (iObjectRegistry *objreg) |
Reads config files, starts periodical status generator. | |
static void | ScheduleNextRun () |
Has the generator run in a while. | |
Static Public Attributes | |
static unsigned int | count |
static unsigned int | mob_birthcount |
static unsigned int | mob_deathcount |
static unsigned int | player_deathcount |
static csString | reportFile |
File that it should log to. | |
static csTicks | reportRate |
Interval in milliseconds to generate a report file. | |
static unsigned int | sold_items |
static unsigned int | sold_value |
This class generates logs at a particular interval that has information that can be displayed later on a website.
At the moment it overwrites logs but can be easily changed to either create a unique log file for each report ( such as daily ).
Log Format: <server_report time="Time stamp for report" number="number of this report" > <player name="player name" guild="guild name" title="guild rank" security="security level" secret="yes|no" /> <server_report>
Definition at line 64 of file serverstatus.h.
static bool ServerStatus::Initialize | ( | iObjectRegistry * | objreg | ) | [static] |
Reads config files, starts periodical status generator.
static void ServerStatus::ScheduleNextRun | ( | ) | [static] |
Has the generator run in a while.
unsigned int ServerStatus::count [static] |
Definition at line 79 of file serverstatus.h.
unsigned int ServerStatus::mob_birthcount [static] |
Definition at line 82 of file serverstatus.h.
unsigned int ServerStatus::mob_deathcount [static] |
Definition at line 81 of file serverstatus.h.
unsigned int ServerStatus::player_deathcount [static] |
Definition at line 83 of file serverstatus.h.
csString ServerStatus::reportFile [static] |
File that it should log to.
Definition at line 77 of file serverstatus.h.
csTicks ServerStatus::reportRate [static] |
Interval in milliseconds to generate a report file.
Definition at line 74 of file serverstatus.h.
unsigned int ServerStatus::sold_items [static] |
Definition at line 85 of file serverstatus.h.
unsigned int ServerStatus::sold_value [static] |
Definition at line 86 of file serverstatus.h.