Skip to content

Commit 4304af8

Browse files
committed
[skip-ci] increase debug logging documentation
1 parent 5701fe2 commit 4304af8

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

imagetool/src/main/bin/logging.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ handlers=java.util.logging.ConsoleHandler
1616
#
1717

1818
com.oracle.weblogic.imagetool.level=INFO
19+
#com.oracle.weblogic.imagetool.level=FINER
1920

2021
#
2122
# Change log file location and handlers logging level as needed. Note the default level for FileHandler is OFF

site/logging.md

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,31 @@
11
# Logging
22

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.
45

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 `handlers` line below the first that
8+
contains the FileHandler.
9+
```properties
10+
#handlers=java.util.logging.ConsoleHandler
11+
handlers=java.util.logging.FileHandler, java.util.logging.ConsoleHandler
12+
```
13+
Then, change the 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 levels from highest to lowest:
20+
21+
| Level | Description |
22+
| --- | --- |
23+
| `SEVERE` | Only error messages will be written to the log file. |
24+
| `WARNING` | Warning messages and above will be written to the log file. |
25+
| `INFO` | (Default) Informational messages and above will be written to the log file. |
26+
| `FINE` | First level of debug messages and above are written to the log file. |
27+
| `FINER` | Detailed debug messages and above are written to the log file. |
28+
| `FINEST` | All HTTP responses in addition to `FINER` level debug messages are written to the log file. |
629

730
### Copyright
831
Copyright (c) 2019, 2020, Oracle and/or its affiliates.

0 commit comments

Comments
 (0)