Chapter 13. log

13.1. log:clear

13.1.1. Description

Clear log entries.

13.1.2. Syntax

log:clear [options]

13.1.3. Options

NameDescription

--help

Display this help message

13.2. log:display

13.2.1. Description

Displays log entries.

13.2.2. Syntax

log:display [options] [logger]

13.2.3. Arguments

NameDescription

logger

The name of the logger. This can be ROOT, ALL, or the name of a logger specified in the org.ops4j.pax.logger.cfg file.

13.2.4. Options

NameDescription

-p

Pattern for formatting the output

--help

Display this help message

--no-color

Disable syntax coloring of log events

-n

Number of entries to display

-l, --level

The minimal log level to display

13.3. log:exception-display

13.3.1. Description

Displays the last occurred exception from the log.

13.3.2. Syntax

log:exception-display [options] [logger]

13.3.3. Arguments

NameDescription

logger

The name of the logger. This can be ROOT, ALL, or the name of a logger specified in the org.ops4j.pax.logger.cfg file.

13.3.4. Options

NameDescription

--help

Display this help message

13.4. log:get

13.4.1. Description

Shows the currently set log level.

13.4.2. Syntax

log:get [options] [logger]

13.4.3. Arguments

NameDescription

logger

The name of the logger or ALL (default)

13.4.4. Options

NameDescription

--help

Display this help message

--no-format

Disable table rendered output

13.5. log:load-test

13.5.1. Description

Load test log.

13.5.2. Syntax

log:load-test [options]

13.5.3. Options

NameDescription

--help

Display this help message

--messaged

 

--threads

 

13.6. log:log

13.6.1. Description

Log a message.

13.6.2. Syntax

log:log [options] message

13.6.3. Arguments

NameDescription

message

The message to log

13.6.4. Options

NameDescription

--help

Display this help message

--level, -l

The level the message will be logged at

13.7. log:set

13.7.1. Description

Sets the log level.

13.7.2. Syntax

log:set [options] level [logger]

13.7.3. Arguments

NameDescription

level

The log level to set (TRACE, DEBUG, INFO, WARN, ERROR) or DEFAULT to unset

logger

Logger name or ROOT (default)

13.7.4. Options

NameDescription

--help

Display this help message

13.8. log:tail

13.8.1. Description

Continuously display log entries. Use ctrl-c to quit this command

13.8.2. Syntax

log:tail [options] [logger]

13.8.3. Arguments

NameDescription

logger

The name of the logger. This can be ROOT, ALL, or the name of a logger specified in the org.ops4j.pax.logger.cfg file.

13.8.4. Options

NameDescription

-p

Pattern for formatting the output

--help

Display this help message

--no-color

Disable syntax coloring of log events

-n

Number of entries to display

-l, --level

The minimal log level to display