shapeworks::StudioLog
Inherits from QObject
Public Signals
Name | |
---|---|
void | error_signal(QString message) |
void | message_signal(QString message) |
Public Functions
Name | |
---|---|
StudioLog() | |
void | new_log() Create a new session. |
void | log_message(QString message, const int line, const char * file) Log a message, use STUDIO_LOG_MESSAGE macro. |
void | log_stack(std::string message) Log a stack trace message, use STUDIO_LOG_STACK macro. |
void | log_error(QString message, const int line, const char * file) Log an error, use STUDIO_LOG_ERROR macro. |
void | show_error(QString message, const int line, const char * file) Log an error, use STUDIO_SHOW_ERROR macro. |
void | show_message(QString message, const int line, const char * file) Log a message, use STUDIO_SHOW_MESSAGE macro. |
void | log_debug(QString message, const int line, const char * file) Log a debug message, use STUDIO_LOG_DEBUG macro. |
void | close_log() Close the log, use STUDIO_CLOSE_LOG macro. |
void | flush_log() Flush log to disk. |
bool | check_log_open() Return if the log is open. |
QString | get_log_filename() Return the log filename. |
StudioLog & | Instance() Return the singleton instance. |
Public Signals Documentation
signal error_signal
void error_signal(
QString message
)
signal message_signal
void message_signal(
QString message
)
Public Functions Documentation
function StudioLog
StudioLog()
function new_log
void new_log()
Create a new session.
function log_message
void log_message(
QString message,
const int line,
const char * file
)
Log a message, use STUDIO_LOG_MESSAGE macro.
function log_stack
void log_stack(
std::string message
)
Log a stack trace message, use STUDIO_LOG_STACK macro.
function log_error
void log_error(
QString message,
const int line,
const char * file
)
Log an error, use STUDIO_LOG_ERROR macro.
function show_error
void show_error(
QString message,
const int line,
const char * file
)
Log an error, use STUDIO_SHOW_ERROR macro.
function show_message
void show_message(
QString message,
const int line,
const char * file
)
Log a message, use STUDIO_SHOW_MESSAGE macro.
function log_debug
void log_debug(
QString message,
const int line,
const char * file
)
Log a debug message, use STUDIO_LOG_DEBUG macro.
function close_log
void close_log()
Close the log, use STUDIO_CLOSE_LOG macro.
function flush_log
void flush_log()
Flush log to disk.
function check_log_open
bool check_log_open()
Return if the log is open.
function get_log_filename
QString get_log_filename()
Return the log filename.
function Instance
static StudioLog & Instance()
Return the singleton instance.
Updated on 2022-07-23 at 17:50:04 -0600