|
Revision 919, 1.1 kB
(checked in by shawnw, 1 year ago)
|
1.8.3p3
|
| Line | |
|---|
| 1 |
#ifndef LOG_H |
|---|
| 2 |
#define LOG_H |
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
#define LT_ERR 0 |
|---|
| 6 |
#define LT_CMD 1 |
|---|
| 7 |
#define LT_WIZ 2 |
|---|
| 8 |
#define LT_CONN 3 |
|---|
| 9 |
#define LT_TRACE 4 |
|---|
| 10 |
#define LT_RPAGE 5 |
|---|
| 11 |
#define LT_CHECK 6 |
|---|
| 12 |
#define LT_HUH 7 |
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
extern void start_all_logs(void); |
|---|
| 16 |
extern void end_all_logs(void); |
|---|
| 17 |
extern void redirect_streams(void); |
|---|
| 18 |
extern void WIN32_CDECL do_log |
|---|
| 19 |
(int logtype, dbref player, dbref object, const char *fmt, ...) |
|---|
| 20 |
__attribute__ ((__format__(__printf__, 4, 5))); |
|---|
| 21 |
extern void WIN32_CDECL do_rawlog(int logtype, const char *fmt, ...) |
|---|
| 22 |
__attribute__ ((__format__(__printf__, 2, 3))); |
|---|
| 23 |
extern void do_logwipe(dbref player, int logtype, char *str); |
|---|
| 24 |
|
|---|
| 25 |
|
|---|
| 26 |
#define LA_CMD 0 |
|---|
| 27 |
#define LA_PE 1 |
|---|
| 28 |
#define LA_LOCK 2 |
|---|
| 29 |
#define ACTIVITY_LOG_SIZE 3 |
|---|
| 30 |
extern void log_activity(int type, dbref player, const char *action); |
|---|
| 31 |
extern void notify_activity(dbref player, int num_lines, int dump); |
|---|
| 32 |
extern const char *last_activity(void); |
|---|
| 33 |
extern int last_activity_type(void); |
|---|
| 34 |
|
|---|
| 35 |
#endif |
|---|