Use the new log file name & ext for every logger context

This commit is contained in:
lynxnb 2021-11-11 16:32:19 +01:00
parent 5cd1f01690
commit 6913a90361
2 changed files with 3 additions and 3 deletions

View File

@ -62,7 +62,7 @@ extern "C" JNIEXPORT void Java_emu_skyline_SkylineApplication_initializeLog(
) {
std::string appFilesPath{env->GetStringUTFChars(appFilesPathJstring, nullptr)};
skyline::Logger::configLevel = static_cast<skyline::Logger::LogLevel>(logLevel);
skyline::Logger::LoaderContext.Initialize(appFilesPath + "loader.log");
skyline::Logger::LoaderContext.Initialize(appFilesPath + "loader.sklog");
}
extern "C" JNIEXPORT void Java_emu_skyline_EmulationActivity_executeApplication(
@ -87,7 +87,7 @@ extern "C" JNIEXPORT void Java_emu_skyline_EmulationActivity_executeApplication(
close(preferenceFd);
skyline::JniString appFilesPath(env, appFilesPathJstring);
skyline::Logger::EmulationContext.Initialize(appFilesPath + "emulation.log");
skyline::Logger::EmulationContext.Initialize(appFilesPath + "emulation.sklog");
auto start{std::chrono::steady_clock::now()};

View File

@ -130,7 +130,7 @@ class MainActivity : AppCompatActivity() {
binding.searchBar.apply {
binding.logIcon.setOnClickListener {
val file = applicationContext.filesDir.resolve("skyline.log")
val file = applicationContext.filesDir.resolve("emulation.sklog")
if (file.length() != 0L) {
val intent = Intent(Intent.ACTION_SEND)
.setType("text/plain")