#include <string>
#include <queue>
#include <fstream>
#include <iostream>
#include <pthread.h>
#include "Settings.h"
#include "functions.h"
Go to the source code of this file.
Classes | |
struct | Log |
Structure used to queue logs. More... | |
class | Logger |
Class that manages logging events related to the cache. More... | |
Enumerations | |
enum | logType { GET, SET, SET_NUMERIC, INCREMENT, SAVE_SPACE, LOAD_SPACE, DESTROY_SPACE, CREATE_SPACE, CLEAN_SPACE, SELECT_SPACE, INITIALIZE, FINALIZE, LOGIN, SOFT_QUOTA_EXCEEDED, HARD_QUOTA_REACHED, LRU_ENTRY_REMOVED, ENTRY_TIMED_OUT, QUOTA_USED_BY_USER, QUOTA_USED_BY_SPACE, BUFFER_OVERFLOW, LOAD_CONFIG, ERROR, CLEAR_STATS, GC_START_RUN, GC_END_RUN, GC_START_COLLECTING_FROM_SPACE, SET_PARAMETERS, GC_WALK, TIME_RECORD } |
enum for all types of logs | |
Functions | |
void * | loggerThread (void *arg) |
logger thread main function | |
void | loggerHandler (int n) |
function catching SIGUSR1 sent to logger threads | |
Variables | |
const int | logTypeLevel [] = { 3, 3, 3, 3, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 3, 3, 2, 2, 1, 1, 2, 3, 3, 3, 3, 1, 1, 1 } |
Log level of all types of logs. |
Definition in file Logger.h.
const int logTypeLevel[] = { 3, 3, 3, 3, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 3, 3, 2, 2, 1, 1, 2, 3, 3, 3, 3, 1, 1, 1 } |