-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Gyorgy Orban
committed
Dec 12, 2018
1 parent
9408745
commit 115a7fe
Showing
2 changed files
with
46 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,44 @@ | ||
# Developer documentation | ||
|
||
## Troubleshooting | ||
|
||
* In case of compile error, attach the maven output | ||
* Runtime logging is still a big todo, currently most log will appear on stdout/stderr | ||
* Requires the Tycho Connector, Eclipse will automatically install it for you when you first import the project | ||
* [Requires Eclipse PDE](https://www.eclipse.org/pde/) (Plug-in Development Environment) | ||
* WindowMaker plugin is recommended | ||
* Adherence to the [Google Java Style](https://google.github.io/styleguide/javaguide.html) is mandatory | ||
* An IntelliJ Idea autoformatter XML configuration file is included in the repo for convenience | ||
|
||
## Development Notes | ||
## Troubleshooting | ||
|
||
* Requires the Tycho Connector, Eclipse will automatically install it for you when you first import the project | ||
* Requires Eclipse PDE (Plug-in Development Environment) | ||
* WindowMaker plugin is recommended | ||
* Adherence to the [Google Java Style](https://google.github.io/styleguide/javaguide.html) is mandatory | ||
* An IntelliJ Idea autoformatter XML configuration file is included in the repo for convenience | ||
* In case of compile error, attach the maven output | ||
* Runtime logging is still a big todo, currently most log will appear on stdout/stderr | ||
|
||
## Version Update | ||
## Update plugin version | ||
|
||
Execute the following command in CodeCheckerEclipsePlugin/eclipse-plugin. | ||
Execute the following command in CodeCheckerEclipsePlugin/eclipse-plugin: | ||
``` mvn -Dtycho.mode=maven org.eclipse.tycho:tycho-versions-plugin:set-version -DnewVersion=X.X.X-SNAPSHOT -Dartifacts=cc.codechecker.eclipse.plugin ``` | ||
|
||
## Log | ||
## Logging | ||
|
||
Logging in the plugin is handled by `log4j` from Apache. The default loglevel is `ERROR`, and the following loglevels are used, in increasing severity order: | ||
|
||
* `TRACE` | ||
* `DEBUG` | ||
* `INFO` | ||
* `WARN` | ||
* `ERROR` | ||
* `FATAL` | ||
* `TRACE` | ||
* `DEBUG` | ||
* `INFO` | ||
* `WARN` | ||
* `ERROR` | ||
* `FATAL` | ||
|
||
The log configuration file's location is `eclipse-plugin/eclipse/cc.codechecker.eclipse.plugin/log4j.properties` before compilation. | ||
|
||
After compiling the plugin, you may change the log level (which specifies which *least severe* category will be logged) by opening the built `cc.codechecker.eclipse.plugin-0.0.1-SNAPSHOT.jar` file (with `mc` or any `zip` editor) and changing the `log4j.properties` file therein. | ||
After compiling the plugin, you may change the log level (which specifies which *least severe* category will be logged) by opening the built `cc.codechecker.eclipse.plugin-0.0.6.jar` file (with `mc` or any `zip` editor) and changing the `log4j.properties` file therein. | ||
|
||
The loglevel is specified as follows: | ||
|
||
log4j.appender.log.threshold=ERROR | ||
```java | ||
log4j.appender.log.threshold=ERROR | ||
``` | ||
|
||
After modifying the jar file, you will need to restart eclipse for the changes to take effect. | ||
|
||
## Checkstyle | ||
Checkstyle is configured for this project. See related [documentation](checkstyle.md) for more information. | ||
|
||
Checkstyle is configured for this project. See related [documentation](checkstyle.md) for more information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters