Simple Logger in C++ to understand how to use singletons.
-
Dividir los ficheros por día.
-
Some sort of configuration. Static const variables that configure the way the compiler put code into the executable ( with "if constexpr" C++17).
-
Some sort of switch on off.
-
Crear diferentes tipos de log, Error, Warning and Info.
-
Buscar:
- Alguna forma de poner la cabecera de la función en la que se llama?
- Alguna forma de obtener el nombre de la variable.
¿Donde se guarda el fichero?
-
guardar en la carpeta donde esté el ejecutable o crear una carpeta log y ponelo ahí?
-
Elegir el nombre del fichero y su formato. -> fecha_fichero.log