日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

jboss 7 as1 日志配置

發布時間:2025/4/5 编程问答 40 豆豆
生活随笔 收集整理的這篇文章主要介紹了 jboss 7 as1 日志配置 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

原文地址:https://docs.jboss.org/author/display/AS71/Logging+Configuration

Overview

The overall server logging configuration is represented by the logging subsystem. It consists of three notable parts:?handler?configurations,?logger?and the?root logger?declarations (aka log categories). Each logger does reference a handler (or set of handlers). Each handler declares the log format and output:

<subsystem xmlns="urn:jboss:domain:logging:1.0"> ???<console-handler name="CONSOLE" autoflush="true"> ???????<level name="DEBUG"/> ???????<formatter> ???????????<pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/> ???????</formatter> ???</console-handler> ???<periodic-rotating-file-handler name="FILE" autoflush="true"> ???????<formatter> ???????????<pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/> ???????</formatter> ???????<file relative-to="jboss.server.log.dir" path="server.log"/> ???????<suffix value=".yyyy-MM-dd"/> ???</periodic-rotating-file-handler> ???<logger category="com.arjuna"> ???????<level name="WARN"/> ???</logger> ???[...] ???<root-logger> ???????<level name="DEBUG"/> ???????<handlers> ???????????<handler name="CONSOLE"/> ???????????<handler name="FILE"/> ???????</handlers> ???</root-logger> </subsystem>

?

Why is there a?logging.properties?file?

You may have noticed that there is a?logging.properties?file in the configuration directory. This logging configuration is used when the server boots up until the logging subsystem kicks in. If the logging subsystem is not included in your configuration, then this would act as the logging configuration for the entire server.

In the future this file may go away or be automatically generated from the logging subsystem. For most users this file should?not?be modified.

Note:?If the logging.properties is not available during start there will be no logging until the logging subsystems kicks in, this is also the case if the configuration is damaged, the server might exit without any further message.

?

Default Log File Locations

Managed Domain

In a managed domain two types of log files do exist: Controller and server logs. The controller components govern the domain as whole. It's their responsibility to start/stop server instances and execute managed operations throughout the domain. Server logs contain the logging information for a particular server instance. They are co-located with the host the server is running on.

For the sake of simplicity we look at the default setup for managed domain. In this case, both the domain controller components and the servers are located on the same host:

ProcessLog File
Host Controller./domain/log/host-controller/boot.log
Process Controller./domain/log/process-controller/boot.log?
"Server One"./domain/servers/server-one/log/boot.log?
"Server One"./domain/servers/server-one/log/server.log?
"Server Three"./domain/servers/server-three/log/boot.log?
"Server Three"./domain/servers/server-three/log/server.log?

?

The server logs as you know it from previous JBoss AS versions are located in the?servers?subdirectory: I.e.?./domain/servers/server-three/log/server.log

?

Standalone Server?

The default log files for a standalone server can be found in the log subdirectory of the distribution:

ProcessLog File
Server./standalone/log/boot.log
Server./standalone/log/server.log

轉載于:https://www.cnblogs.com/davidwang456/p/4140530.html

總結

以上是生活随笔為你收集整理的jboss 7 as1 日志配置的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。