Skip to content

shapeworks::StudioLog

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 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 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 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-03-31 at 09:51:19 -0600