Java Code Examples for com.intellij.openapi.diagnostic.Logger#warn()
The following examples show how to use
com.intellij.openapi.diagnostic.Logger#warn() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RequestBuilder.java From leetcode-editor with Apache License 2.0 | 5 votes |
public <T> T connect(@NotNull HttpRequests.RequestProcessor<T> processor, T errorValue, @Nullable Logger logger) { try { return connect(processor); } catch (Throwable e) { if (logger != null) { logger.warn(e); } return errorValue; } }
Example 2
Source File: DslCompilerService.java From dsl-compiler-client with BSD 3-Clause "New" or "Revised" License | 5 votes |
private void setupCompiler(Logger logger, DslContext context) throws InterruptedException { if (!Main.processContext(context, Arrays.<CompileParameter>asList(Download.INSTANCE, DslCompiler.INSTANCE))) { logger.warn("Unable to setup DSL Platform client"); } final String path = context.get(DslCompiler.INSTANCE); if (path == null) { logger.error("Unable to setup dsl-compiler.exe. Please check if Mono/.NET is installed and available on path."); } else { final File compiler = new File(path); logger.info("DSL Platform compiler found at: " + compiler.getAbsolutePath()); Either<DslCompiler.TokenParser> trySetup = DslCompiler.setupServer(context, compiler); if (trySetup.isSuccess()) { tokenParser = trySetup.get(); Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() { @Override public void run() { try { tokenParser.close(); tokenParser = null; } catch (Exception ignore) { } } })); Thread.sleep(2000); for (Runnable r : notifications) { r.run(); } } } }
Example 3
Source File: FlutterUtils.java From flutter-intellij with BSD 3-Clause "New" or "Revised" License | 2 votes |
/** * Write a warning message to the IntelliJ log. * <p> * This is separate from LOG.warn() to allow us to decorate the behavior. */ public static void warn(Logger logger, @NotNull Throwable t) { logger.warn(t); }
Example 4
Source File: FlutterUtils.java From flutter-intellij with BSD 3-Clause "New" or "Revised" License | 2 votes |
/** * Write a warning message to the IntelliJ log. * <p> * This is separate from LOG.warn() to allow us to decorate the behavior. */ public static void warn(Logger logger, String message) { logger.warn(message); }
Example 5
Source File: FlutterUtils.java From flutter-intellij with BSD 3-Clause "New" or "Revised" License | 2 votes |
/** * Write a warning message to the IntelliJ log. * <p> * This is separate from LOG.warn() to allow us to decorate the behavior. */ public static void warn(Logger logger, String message, @NotNull Throwable t) { logger.warn(message, t); }
Example 6
Source File: FlutterUtils.java From flutter-intellij with BSD 3-Clause "New" or "Revised" License | 2 votes |
/** * Write a warning message to the IntelliJ log. * <p> * This is separate from LOG.warn() to allow us to decorate the behavior. */ public static void warn(Logger logger, @NotNull Throwable t) { logger.warn(t); }
Example 7
Source File: FlutterUtils.java From flutter-intellij with BSD 3-Clause "New" or "Revised" License | 2 votes |
/** * Write a warning message to the IntelliJ log. * <p> * This is separate from LOG.warn() to allow us to decorate the behavior. */ public static void warn(Logger logger, String message) { logger.warn(message); }
Example 8
Source File: FlutterUtils.java From flutter-intellij with BSD 3-Clause "New" or "Revised" License | 2 votes |
/** * Write a warning message to the IntelliJ log. * <p> * This is separate from LOG.warn() to allow us to decorate the behavior. */ public static void warn(Logger logger, String message, @NotNull Throwable t) { logger.warn(message, t); }