int main(int argc, char *argv[]) { QCoreApplication service(argc, argv); Logfile main_log("netcom.log"); if (!main_log.Init()){ qDebug() << "Fatal error : Could not open logfile." << endl; return 1; } TaskHandler task_handler(&main_log, DEFAULT_GUI_PORT); if (!task_handler.Init()){ main_log.log(LogLevel::FatalError, "Could not initialize task handler"); return 1; }
static void main_log_error (MAYBE_UNUSED hashcat_ctx_t *hashcat_ctx, MAYBE_UNUSED const void *buf, MAYBE_UNUSED const size_t len) { main_log (hashcat_ctx, stderr, LOGLEVEL_ERROR); }
static void main_log_warning (MAYBE_UNUSED hashcat_ctx_t *hashcat_ctx, MAYBE_UNUSED const void *buf, MAYBE_UNUSED const size_t len) { main_log (hashcat_ctx, stdout, LOGLEVEL_WARNING); }
static void main_log_info (MAYBE_UNUSED hashcat_ctx_t *hashcat_ctx, MAYBE_UNUSED const void *buf, MAYBE_UNUSED const size_t len) { main_log (hashcat_ctx, stdout, LOGLEVEL_INFO); }