Merge pull request #40 from antopilo/feature/logger-rework

Rework logger
This commit is contained in:
Antoine Pilote
2023-07-21 22:41:19 -04:00
committed by GitHub
26 changed files with 127 additions and 97 deletions

View File

@@ -170,7 +170,7 @@ namespace Nuake
{
if(FileSystem::RemoveFile(file->GetAbsolutePath()) != 0)
{
Logger::Log("Failed to remove file: " + file->GetRelativePath(), CRITICAL);
Logger::Log("Failed to remove file: " + file->GetRelativePath(), "editor", CRITICAL);
}
RefreshFileBrowser();
}
@@ -286,7 +286,7 @@ namespace Nuake
}
else
{
Logger::Log("[FileSystem] Cannot create script files that starts with a number.", CRITICAL);
Logger::Log("[FileSystem] Cannot create script files that starts with a number.", "editor", CRITICAL);
}
}
}
@@ -434,6 +434,8 @@ namespace Nuake
ImGui::EndChild();
ImGui::PopStyleVar();
ImGui::PopStyleVar();
ImGui::PopStyleColor();
@@ -441,7 +443,7 @@ namespace Nuake
if (ImGui::Button((std::string(ICON_FA_FOLDER_OPEN)).c_str(), buttonSize))
{
OS::ShowInFileExplorer(m_CurrentDirectory->fullPath);
OS::OpenIn(m_CurrentDirectory->fullPath);
}
ImGui::SameLine();