int get_syslog_equivalent(enum loglevels loglevel);
-static char *get_command_name(char *commandpath);
-
/* =========================================================================
Instanciated data
========================================================================= */
{
#ifndef DISABLE_LOGGER
- struct stat statbuf;
- int firstattempt;
- int retval;
- gid_t gid;
- uid_t uid;
- int access;
char lastchar[2];
log_file_data_pair *logs;
Internal function definitions
========================================================================= */
+#if 0
static char *get_command_name(char *commandpath)
{
char *ptr;
ptr = commandpath;
else
ptr++;
-
+
#ifdef DEBUG_OUTPUT_TO_SCREEN
printf("Concluded %s\n", ptr);
#endif
return ptr;
}
+#endif
void workout_what_to_print(struct what_to_print_array *what_to_print,
struct tag_log_file_data *log_struct)
struct tag_log_file_data *log_struct,
enum loglevels loglevel, enum logtypes logtype)
{
- char datebuffer[32];
- char processinfo[64];
-
char *ptr = message_details_buffer;
int templen;
int len = message_details_buffer_length;
- char log_buffer[MAXLOGSIZE];
- const char *logtype_string;
-
- char loglevel_string[12]; /* max int size is 2 billion, or 10 digits */
-
struct what_to_print_array what_to_print;
workout_what_to_print(&what_to_print, log_struct);
can be taken from default if needs be.
*/
/* const char* sources[] = {"syslog", "filelog"}; */
- const char *null = "";
- int sourcenum, typenum, levelnum;
+ int typenum, levelnum;
log_file_data_pair *logs = log_file_arr[logtype_default];
/*