Skip to content

Review InterProcessLogging.md for linguistic and formatting bugs #1786

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 22, 2023

Conversation

olganaumenko
Copy link
Collaborator

Description

Linguistic bugs fixed, document structure optimized.

How to test

The PR introduces no code changes.
Manual scenario: the text itself has been previewed in the IntelliJ IDEA viewer.

Self-check list

Check off the item if the statement is true. Hint: [x] is a marked item.

Please do not delete the list or its items.

  • I've set the proper labels for my PR (at least, for category and component).
  • PR title and description are clear and intelligible.
  • I've added enough comments to my code, particularly in hard-to-understand areas.
  • The functionality I've repaired, changed or added is covered with automated tests.
  • Manual tests have been provided optionally.
  • The documentation for the functionality I've been working on is up-to-date.

@olganaumenko olganaumenko added ctg-documentation Improvements or additions to documentation comp-logging Issue is related to Logging labels Feb 13, 2023
When UtBot is used as IDEA plugin - [`utbot-intellij/log4j2.xml`](../utbot-intellij/src/main/resources/log4j2.xml)
is used as configuration file.
In other cases(`ContestEstimator`, `Gradle/Maven` tasks, `CLI`, tests) it searches for the first `log4j2.xml` in resources in classpath.
The UnitTestBot Java logging system relies on `log4j2` utility.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Log4j2 is not utility - it is separate library.


To store log data, the UnitTestBot Java plugin creates a directory:
`org.utbot.intellij.plugin.process.EngineProcessKt.engineProcessLogDirectory`.
The IDE process writes logging information to `idea.log` files and puts them into this directory.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Idea.log file is not in that directory. It is deafult IDEA log file.


#### Engine process started separately

This is the case for `ContestEstimator`, `Gradle/Maven` tasks, `CLI`, tests, etc.
Configuration is taken from `log4j2.xml` in resources from the first `log4j2.xml` in resources in classpath.
When used as Contest estimator or the Gradle/Maven plugins, via CLI or for testing purposes,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for testing purposes

I think this will cause misunderstating. Not for testing purposes, in our tests. Tests run are running in our CI

@olganaumenko olganaumenko merged commit 271a1c2 into main Feb 22, 2023
@olganaumenko olganaumenko deleted the olganaumenko/InterProcessLogging_doc_review branch February 22, 2023 16:02
sofurihafe pushed a commit that referenced this pull request Feb 27, 2023
* InterProcessLogging.md reviewed for linguistic and formatting bugs

* Fixed info about directories and minor wordings
@alisevych alisevych added this to the 2023.03 Release milestone Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-logging Issue is related to Logging ctg-documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants