Skip Headers

Oracle® JRockit Virtual Edition User's Guide Release 2.0.0 Part Number E22518-01 |
Home | Contents | Contact Us

Previous | Next
| View PDF

# -l (--log)

You can include `-l` (lowercase letter `L`) in an Image Tool command, to specify the types of messages that should be printed for the command.

Syntax

    java -jar jrockitve-imagetool.jar option -l level

You can include `--log` either before or after the options it accompanies.

Note:

For information about the syntax conventions, see Documentation Conventions for Command-Line Syntax.

Arguments

Argument | Description
--- | ---
`option` | The option for which you want messages to be printed
`level` | The types of log messages that should be printed

Table A-2 lists the possible log levels and the output stream (`stdout` or `stderr`) for each message type at various log levels.

Table A-2 Output Streams for Message Types at Various Log Levels

Log Level | Error Messages | Warning Messages | Information Messages | Confirmation Messages
--- | --- | --- | --- | ---
`quiet` | `stderr` | None | None | None
`brief` (default) | `stderr` | `stderr` | `stdout` | `stdout`
`verbose` | `stderr` | `stderr` | `stdout` | `stdout`

Example

    java -jar jrockitve-imagetool.jar -r app/vm.cfg get vm-name -l verbose

This command causes the following log messages to be displayed while the Image Tool retrieves the name of the virtual machine.

    [INFO  image.tool             ] Synchronizing the image ...
    [INFO  image.tool             ] Done
    default-vm

When you run the same command with the `brief` or `quiet` log level instead, only the virtual machine name is printed.