Search in sources :

Example 1 with LogFilesManager

use of com.intellij.diagnostic.logging.LogFilesManager in project intellij-community by JetBrains.

the class RunTab method initLogConsoles.

protected final void initLogConsoles(@NotNull RunProfile runConfiguration, @NotNull RunContentDescriptor contentDescriptor, @Nullable ExecutionConsole console) {
    ProcessHandler processHandler = contentDescriptor.getProcessHandler();
    if (runConfiguration instanceof RunConfigurationBase) {
        RunConfigurationBase configuration = (RunConfigurationBase) runConfiguration;
        if (myManager == null) {
            myManager = new LogFilesManager(myProject, getLogConsoleManager(), contentDescriptor);
        }
        myManager.addLogConsoles(configuration, processHandler);
        if (processHandler != null) {
            OutputFileUtil.attachDumpListener(configuration, processHandler, console);
        }
    }
}
Also used : RunConfigurationBase(com.intellij.execution.configurations.RunConfigurationBase) LogFilesManager(com.intellij.diagnostic.logging.LogFilesManager) ProcessHandler(com.intellij.execution.process.ProcessHandler)

Aggregations

LogFilesManager (com.intellij.diagnostic.logging.LogFilesManager)1 RunConfigurationBase (com.intellij.execution.configurations.RunConfigurationBase)1 ProcessHandler (com.intellij.execution.process.ProcessHandler)1