此内容没有您所选择的语言版本。

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

Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.