Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

### Changed

- Made log file `dash.log` (instead of `flutter.log`).

### Removed

### Fixed
Expand Down
3 changes: 2 additions & 1 deletion src/io/flutter/FlutterErrorReportSubmitter.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import com.intellij.openapi.project.Project;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.util.Consumer;
import io.flutter.logging.PluginLogger;
import io.flutter.run.daemon.DaemonApi;
import io.flutter.sdk.FlutterSdk;
import org.jetbrains.annotations.NotNull;
Expand Down Expand Up @@ -181,7 +182,7 @@ public boolean submit(@NotNull IdeaLoggingEvent @NotNull [] events,
builder.append("```\n");
try {
final String logPath = PathManager.getLogPath();
final File logFile = new File(logPath, "flutter.log");
final File logFile = new File(logPath, PluginLogger.LOG_FILE_NAME);
if (logFile.exists()) {
final List<String> lines = Files.readAllLines(logFile.toPath(), StandardCharsets.UTF_8);
final int count = 200;
Expand Down
3 changes: 1 addition & 2 deletions src/io/flutter/logging/PluginLogger.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
*/
package io.flutter.logging;

import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.application.PathManager;
import com.intellij.openapi.diagnostic.LogLevel;
import com.intellij.openapi.diagnostic.Logger;
Expand All @@ -18,7 +17,7 @@
import java.util.logging.SimpleFormatter;

public class PluginLogger {
private static final String LOG_FILE_NAME = "flutter.log";
public static final String LOG_FILE_NAME = "dash.log";

// This handler specifies the logging format and location.
private static final FileHandler fileHandler;
Expand Down
Loading