Classe de gestion de logs. Plus de détails...
Graphe d'héritage de Castor::Logger:
Graphe de collaboration de Castor::Logger:Fonctions membres publiques statiques | |
| static void | Initialise (Logger *p_pLogger) |
| Initialise l'instance de ce Logger à une autre. | |
| static void | Initialise (eLOG_TYPE p_eLogLevel) |
| Initialise l'instance du logger avec le niveau donné. | |
| static void | Cleanup () |
| Détruit l'instance du Logger. | |
| static void | SetCallback (PLogCallback p_pfnCallback, void *p_pThis) |
| Définit la callback de log. | |
| static void | SetFileName (String const &p_logFilePath, eLOG_TYPE p_eLogType=eLOG_TYPE_COUNT) |
| Définit le chemin du fichier de log. | |
| static void | LogDebug (char const *p_format,...) |
| Log un message debug dans le fichier de log, en utilisant va_args. | |
| static void | LogDebug (std::string const &p_msg) |
| Log un message debug, à partir d'un std::string. | |
| static void | LogDebug (wchar_t const *p_format,...) |
| Log un message unicode debug dans le fichier de log, en utilisant va_args. | |
| static void | LogDebug (std::wstring const &p_msg) |
| Log un message debug, à partir d'un std::wstring. | |
| static void | LogMessage (char const *p_format,...) |
| Log un message dans le fichier de log, en utilisant va_args. | |
| static void | LogMessage (std::string const &p_msg) |
| Log un message, à partir d'un std::string. | |
| static void | LogMessage (wchar_t const *p_format,...) |
| Log une ligne unicode dans le fichier de log, en utilisant va_args. | |
| static void | LogMessage (std::wstring const &p_msg) |
| Log un message, à partir d'un std::wstring. | |
| static void | LogWarning (char const *p_format,...) |
| Log un avertissement dans le fichier de log, en utilisant va_args. | |
| static void | LogWarning (std::string const &p_msg) |
| Log un avertissement, à partir d'un std::string. | |
| static void | LogWarning (wchar_t const *p_format,...) |
| Log un avertissement en unicode dans le fichier de log, en utilisant va_args. | |
| static void | LogWarning (std::wstring const &p_msg) |
| Log un avertissement, à partir d'un std::wstring. | |
| static void | LogError (char const *p_format,...) |
| Log une erreur dans le fichier de log, en utilisant va_args. | |
| static void | LogError (std::string const &p_msg, bool p_bThrow=true) throw ( bool ) |
| Log une erreur, à partir d'un std::string. | |
| static void | LogError (wchar_t const *p_format,...) |
| Log une erreur en unicode dans le fichier de log, en utilisant va_args. | |
| static void | LogError (std::wstring const &p_msg, bool p_bThrow=true) throw ( bool ) |
| Log une erreur, à partir d'un std::wstring. | |
| static Logger & | GetSingleton () |
| Retourne une référence sur l'instance. | |
| static Logger * | GetSingletonPtr () |
| Retourne un pointeur sur l'instance. | |
Amis | |
| class | ILoggerImpl |
Classe de gestion de logs.
| static void Castor::Logger::Cleanup | ( | ) | [static] |
Détruit l'instance du Logger.
| static Logger& Castor::Logger::GetSingleton | ( | ) | [static] |
Retourne une référence sur l'instance.
| static Logger* Castor::Logger::GetSingletonPtr | ( | ) | [static] |
Retourne un pointeur sur l'instance.
| static void Castor::Logger::Initialise | ( | eLOG_TYPE | p_eLogLevel | ) | [static] |
Initialise l'instance du logger avec le niveau donné.
| [in] | p_eLogLevel | Le niveau de log |
| static void Castor::Logger::Initialise | ( | Logger * | p_pLogger | ) | [static] |
Initialise l'instance de ce Logger à une autre.
| [in] | p_pLogger | Le logger |
| static void Castor::Logger::LogDebug | ( | wchar_t const * | p_format, | |
| ... | ||||
| ) | [static] |
Log un message unicode debug dans le fichier de log, en utilisant va_args.
| [in] | p_format | Le format de la ligne |
| [in] | ... | Paramètres POD, utilise le format de printf |
| static void Castor::Logger::LogDebug | ( | std::wstring const & | p_msg | ) | [static] |
Log un message debug, à partir d'un std::wstring.
| [in] | p_msg | The line to log |
| static void Castor::Logger::LogDebug | ( | char const * | p_format, | |
| ... | ||||
| ) | [static] |
Log un message debug dans le fichier de log, en utilisant va_args.
| [in] | p_format | Le format de la ligne |
| [in] | ... | Paramètres POD, utilise le format de printf |
| static void Castor::Logger::LogDebug | ( | std::string const & | p_msg | ) | [static] |
Log un message debug, à partir d'un std::string.
| [in] | p_msg | The line to log |
| static void Castor::Logger::LogError | ( | std::string const & | p_msg, | |
| bool | p_bThrow = true | |||
| ) | throw ( bool ) [static] |
Log une erreur, à partir d'un std::string.
| [in] | p_msg | The line to log |
| [in] | p_bThrow | Définit si cette fonction lance une exception |
| static void Castor::Logger::LogError | ( | char const * | p_format, | |
| ... | ||||
| ) | [static] |
Log une erreur dans le fichier de log, en utilisant va_args.
| [in] | p_format | Le format de la ligne |
| [in] | ... | Paramètres POD, utilise le format de printf |
| static void Castor::Logger::LogError | ( | std::wstring const & | p_msg, | |
| bool | p_bThrow = true | |||
| ) | throw ( bool ) [static] |
Log une erreur, à partir d'un std::wstring.
| [in] | p_msg | The line to log |
| [in] | p_bThrow | Définit si cette fonction lance une exception |
| static void Castor::Logger::LogError | ( | wchar_t const * | p_format, | |
| ... | ||||
| ) | [static] |
Log une erreur en unicode dans le fichier de log, en utilisant va_args.
| [in] | p_format | Le format de la ligne |
| [in] | ... | Paramètres POD, utilise le format de printf |
| static void Castor::Logger::LogMessage | ( | char const * | p_format, | |
| ... | ||||
| ) | [static] |
Log un message dans le fichier de log, en utilisant va_args.
| [in] | p_format | Le format de la ligne |
| [in] | ... | Paramètres POD, utilise le format de printf |
| static void Castor::Logger::LogMessage | ( | std::string const & | p_msg | ) | [static] |
Log un message, à partir d'un std::string.
| [in] | p_msg | The line to log |
| static void Castor::Logger::LogMessage | ( | wchar_t const * | p_format, | |
| ... | ||||
| ) | [static] |
Log une ligne unicode dans le fichier de log, en utilisant va_args.
| [in] | p_format | Le format de la ligne |
| [in] | ... | Paramètres POD, utilise le format de printf |
| static void Castor::Logger::LogMessage | ( | std::wstring const & | p_msg | ) | [static] |
Log un message, à partir d'un std::wstring.
| [in] | p_msg | The line to log |
| static void Castor::Logger::LogWarning | ( | wchar_t const * | p_format, | |
| ... | ||||
| ) | [static] |
Log un avertissement en unicode dans le fichier de log, en utilisant va_args.
| [in] | p_format | Le format de la ligne |
| [in] | ... | Paramètres POD, utilise le format de printf |
| static void Castor::Logger::LogWarning | ( | std::string const & | p_msg | ) | [static] |
Log un avertissement, à partir d'un std::string.
| [in] | p_msg | The line to log |
| static void Castor::Logger::LogWarning | ( | char const * | p_format, | |
| ... | ||||
| ) | [static] |
Log un avertissement dans le fichier de log, en utilisant va_args.
| [in] | p_format | Le format de la ligne |
| [in] | ... | Paramètres POD, utilise le format de printf |
| static void Castor::Logger::LogWarning | ( | std::wstring const & | p_msg | ) | [static] |
Log un avertissement, à partir d'un std::wstring.
| [in] | p_msg | The line to log |
| static void Castor::Logger::SetCallback | ( | PLogCallback | p_pfnCallback, | |
| void * | p_pThis | |||
| ) | [static] |
Définit la callback de log.
| [in] | p_pfnCallback | La callback |
| [in] | p_pThis | Pointeur sur des données utilisateur |
| static void Castor::Logger::SetFileName | ( | String const & | p_logFilePath, | |
| eLOG_TYPE | p_eLogType = eLOG_TYPE_COUNT | |||
| ) | [static] |
Définit le chemin du fichier de log.
| [in] | p_logFilePath | Le chemin du fichier |
| [in] | p_eLogType | Le type de log concerné |
friend class ILoggerImpl [friend] |
1.7.1