|
1 | 1 | # Logging
|
2 | 2 |
|
3 |
| -In some circumstances, it may be helpful to turn on debugging to reveal more information. |
| 3 | +The Image Tool uses standard Java logging. To alter the default logging settings, you can modify the `logging.properties` |
| 4 | +file under the `bin` directory where you installed the Image Tool. |
4 | 5 |
|
5 |
| -The Image Tool uses the standard `logging.properties` file under the tool's ```bin``` directory. |
| 6 | +### To enable debug logging |
| 7 | +In `logging.properties`, comment the existing `handlers` property and uncomment the second `handlers` line below the first |
| 8 | +line that you just commented. This should make the `logging.properties` file look something like this: |
| 9 | +```properties |
| 10 | +#handlers=java.util.logging.ConsoleHandler |
| 11 | +handlers=java.util.logging.FileHandler, java.util.logging.ConsoleHandler |
| 12 | +``` |
| 13 | +Then, change level to `FINE` or `FINER`. |
| 14 | +```properties |
| 15 | +#com.oracle.weblogic.imagetool.level=INFO |
| 16 | +com.oracle.weblogic.imagetool.level=FINER |
| 17 | +``` |
| 18 | + |
| 19 | +Logging severity levels from highest to lowest: |
| 20 | + |
| 21 | +| Level | Description | |
| 22 | +| --- | --- | |
| 23 | +| `SEVERE` | Only error messages are written to the log file. | |
| 24 | +| `WARNING` | Warning messages and higher are written to the log file. | |
| 25 | +| `INFO` | (Default) Informational messages and higher are written to the log file. | |
| 26 | +| `FINE` | First level debug messages and higher are written to the log file. | |
| 27 | +| `FINER` | Detailed debug messages and higher are written to the log file. | |
| 28 | +| `FINEST` | In addition to FINER level debug messages, all HTTP responses are written to the log file. | |
6 | 29 |
|
7 | 30 | ### Copyright
|
8 | 31 | Copyright (c) 2019, 2020, Oracle and/or its affiliates.
|
0 commit comments