rename commit to log in console
This commit is contained in:
parent
b09ae8407f
commit
0b761bde2b
@ -53,7 +53,7 @@ namespace hack
|
||||
Database::instance().execute("logger", convert_to_json());
|
||||
}
|
||||
|
||||
void commit(const std::filesystem::path file_name = DEF_FILE_NAME(), std::string line = DEF_LINE())
|
||||
void log(const std::filesystem::path file_name = DEF_FILE_NAME(), std::string line = DEF_LINE())
|
||||
{
|
||||
error("")(file_name,":", line, ": ", m_message);
|
||||
warn("")(m_location, ": ", m_description);
|
||||
|
@ -5,6 +5,7 @@
|
||||
auto main(int argc, char *argv[]) -> int
|
||||
{
|
||||
hack::exception ex;
|
||||
ex.log();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user