#include "global.h"
#include <array>
#include <iomanip>
#include <ios>
#include <ostream>
#include <sstream>
#include <string>
#include <cstdint>
Go to the source code of this file.
|
| class | sf::LoggingCategory |
| | Represents a category used for logging purposes. Provides a way to group and control log messages based on different categories. It can be useful for filtering log output and applying specific logging levels to different parts of an application. More...
|
| struct | sf::LogLocation |
| | Source code location metadata captured during log message generation. More...
|
| class | sf::LogStream |
| | Stream buffer helper for formatted logging output. More...
|
| class | sf::LogMessage |
| | Log message lifecycle container that flushes buffered output on destruction. More...
|
| class | sf::LogMessageVoidify |
| | Helper structure used to discard stripped log expressions at compile time. More...
|
|
| TARGET_IMPORT void | sf::setLogMessagePattern (const std::string &pattern) |
| | Sets the pattern for formatting log messages. This method configures the format used to display log messages. The format can include specific placeholders in the form of '%{token}' that determine the structure and content of log output. Available tokens: 'type', 'file', 'line', 'category', 'message' and 'time'. Where time is the timestamp of the log message and formatted using the std::put_time() formatting. Since milliseconds are not included in the std::put_time() formatting, milliseconds are appended to the formatted time when the format ends with a '.'.
|
| TARGET_IMPORT LogHandler | sf::installLogHandler (LogHandler handler) |
| | Installs a custom message handler callback.
|
| TARGET_IMPORT LogHandler | sf::defaultLogHandler () |
| | Gets the default log message handler.
|
◆ SF_DECLARE_LOGGING_CATEGORY
| #define SF_DECLARE_LOGGING_CATEGORY |
( |
| name | ) |
|
Value:
Represents a category used for logging purposes. Provides a way to group and control log messages bas...
Definition logger.h:51
Declares a logging category accessor function.
◆ SF_LOGGING_CATEGORY
| #define SF_LOGGING_CATEGORY |
( |
| name, |
|
|
| stringName ) |
Value:
Defines and instantiates a static logging category.
◆ SF_MESSAGE_LOGGER_COMMON
| #define SF_MESSAGE_LOGGER_COMMON |
( |
| category, |
|
|
| level ) |
Value:if (category().isEnabled(level)) \
sf::LogMessage(level, category(), __FILE__, __LINE__, __func__).stream()
◆ sfCCritical
| #define sfCCritical |
( |
| category | ) |
|
Value:
#define SF_MESSAGE_LOGGER_COMMON(category, level)
Definition logger.h:321
@ Critical
Definition logger.h:41
◆ sfCDebug
| #define sfCDebug |
( |
| category | ) |
|
Value:
@ Debug
Definition logger.h:38
◆ sfCInfo
| #define sfCInfo |
( |
| category | ) |
|
Value:
@ Info
Definition logger.h:39
◆ sfCWarning
| #define sfCWarning |
( |
| category | ) |
|
Value:
@ Warning
Definition logger.h:40