TinyMUSH 3.3
TinyMUSH Server
Loading...
Searching...
No Matches
Functions | Variables
log.c File Reference

Handle log files and log events. More...

#include "config.h"
#include "constants.h"
#include "typedefs.h"
#include "macros.h"
#include "externs.h"
#include "prototypes.h"
#include <errno.h>
#include <string.h>
Include dependency graph for log.c:

Functions

char * logfile_init (char *filename)
 
void logfile_move (char *oldfn, char *newfn)
 
int start_log (const char *primary, const char *secondary, int key)
 
void end_log (void)
 
void _log_perror (const char *file, int line, const char *primary, const char *secondary, const char *extra, const char *failing_object)
 
void _log_write (const char *file, int line, int key, const char *primary, const char *secondary, const char *format,...)
 
void log_write_raw (int key, const char *format,...)
 
char * log_getname (dbref target)
 
char * log_gettype (dbref thing, char *d)
 
void do_logrotate (dbref player, dbref cause __attribute__((unused)), int key __attribute__((unused)))
 
void logfile_close (void)
 

Variables

FILE * mainlog_fp = NULL
 
FILE * log_fp = NULL
 
char * log_pos = NULL
 

Detailed Description

Handle log files and log events.

Author
TinyMUSH development team (https://github.com/TinyMUSH)
Version
3.3
Date
2021-01-04
Warning
Be carefull that functions doesn't go circural when calling one of the XMALLOC functions.

Variable Documentation

◆ log_fp

FILE* log_fp = NULL

Pointer to the facility's log file

◆ mainlog_fp

FILE* mainlog_fp = NULL

Pointer to the main log file