0

I have PyCharm installed on my Linux system. When launched, it prints different warnings for example:

X Input2 not supported in the server

Which comes from here. It calls the log.warning method to print the warning.

Those warnings are printed to the standard output. I'm trying to figure out how to redirect all those printed warnings into a dedicated log file, without custom rededication like >& log.

I'm sure that there is some custom way to do this, by setting an environment variable or editing one of the XML files (like ui.lnf.xml, editor.xml, options.xml etc.). Tried to investigate the code, but I can't seem to figure out a way to do this. Is it possible to achieve?

LazyOne
  • 148,457
  • 42
  • 363
  • 369
vesii
  • 2,276
  • 2
  • 15
  • 44
  • I think the [IDE wide logs](https://www.jetbrains.com/help/pycharm/event-log-tool-window.html) already keep all the startup and launch info, [see also](https://intellij-support.jetbrains.com/hc/en-us/articles/207241085-Locating-IDE-log-files). Or do you mean logging [a run configuration or breakpoint](https://stackoverflow.com/a/66839359)? Depending if you're developing in Java or Python it should be possible to [catch and log system exceptions](https://stackoverflow.com/a/69528262) – bad_coder May 05 '22 at 18:51

0 Answers0