原文地址: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:

Process Log 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:

Process Log File
Server ./standalone/log/boot.log
Server ./standalone/log/server.log

转载于:https://www.cnblogs.com/davidwang456/p/4140530.html

jboss 7 as1 日志配置相关推荐

  1. jboss as安装配置_书评:JBoss AS 7:配置,部署和管理

    jboss as安装配置 我热切地接受Packt Publishing邀请复审JBoss AS 7:配置,部署和管理,因为自从我上次使用JBoss已有数年了,我很想了解有关JBoss AS 7的更多信 ...

  2. 书评:JBoss AS 7:配置,部署和管理

    我热切地接受Packt Publishing邀请复审JBoss AS 7:配置,部署和管理,因为自从我上次使用JBoss已有数年了,我很想了解有关JBoss AS 7的更多信息. 我已经写过关于< ...

  3. 【Flink】Flink1.11.2 on YARN滚动日志配置

    文章目录 1.概述 1.1 Flink 应用的完整日志如何查看? 1.2 滚动 1.概述 转载:Flink1.11.2 on YARN滚动日志配置 参考:https://blog.csdn.net/w ...

  4. jboss不打印日志的问题------:logback + slf4j + jboss + spring mvc----菩提树下的杨过

    http://www.cnblogs.com/yjmyzz/p/3991012.html  ---菩提树下的杨过 http://blog.itpub.net/15711267/viewspace-10 ...

  5. qt能使用logback_Spring boot使用logback实现日志配置

    欢迎关注头条号:老顾聊技术 精品原创技术分享,知识的组装工 目录 前言 常用日志组件 什么是日志门面和日志实现 常见的日志框架 日志使用 @slf4j注解 日志的配置 logback-spring配置 ...

  6. 九爷带你了解 nginx 日志配置指令详解

    nginx日志配置指令详解 日志对于统计排错来说非常有利的. 本文总结了nginx日志相关的配置如 access_log.log_format.open_log_file_cache.log_not_ ...

  7. django 完整日志配置

    django 完整日志配置 django中的log需要在settings.py中配置 import timecur_path = os.path.dirname(os.path.realpath(__ ...

  8. vsftpd日志配置及查看——可以将vsftpd记录在系统日志里

    vsftpd日志配置及查看 vsftpd ftp服务器的日志设置,可以通过修改主配置文件/etc/vsftpd.conf实现.主配置文件中与日志设置有关的选项包括xferlog_enable .xfe ...

  9. Oracle 监听器日志配置与管理

    --======================== -- Oracle 监听器日志配置与管理 --========================     Oracle 监听器是一个服务器端程序,用 ...

最新文章

  1. 在SQL Server中判断一个作业是否正在运行
  2. 解决 .NET Core 在 Linux Container 中获取 CurrentCulture 不正确的问题
  3. html怎样将单元格的字竖式,数学竖式计算的标准格式是怎样的?需要注意哪些问题?...
  4. codeforces 486A-C语言解题报告
  5. 域添加另一台机器_巨杉Tech | SequoiaDB数据域概念解读与实践
  6. #if, #ifdef, #ifndef, #else, #elif, #endif的用法
  7. python matpoltlib绘制动态图_使用Python、Geopandas和Matplotlib制作gif动态
  8. 1473. A + B 格式
  9. java ztree json_java 树形转换JSON 工具类 / 树形子父级菜单递归 JSON 格式
  10. 趣味程序之数学之美系列
  11. oracle静默安装报错,静默安装oracle时报错
  12. Android 正则表达式
  13. 微信扫码ios:scanQRCode:the permission value is offline verifying
  14. java libmp3lame_录制MP3格式的音频( lame 库的编译及使用)
  15. 爬虫是什么?可以用来干什么?
  16. centos6 yum源失效解决方法
  17. wegame更改计算机设备,WEGAME手机串流怎么设置 WEGAME手机串流设置教程
  18. i5 1240p和锐龙r5 5600u选哪个好?区别对比评测
  19. 关于在WIN10中使用照片查看器的问题
  20. 市面上免费的PDF编辑器都是假的,试试这一款真免费

热门文章

  1. 之江汇空间如何加音乐背景_从脚本到成品,教你如何快速制作出创意又浪漫的婚礼视频...
  2. mysql duplicateentry_[MySQL]mysqldump出来数据再导入回去,为什么会出现Duplicate entry?...
  3. string类有可以调换方向的函数吗_C++中的string类的用法小结
  4. halcon 旋转_HALCON高级篇:3D相机标定(2/3)
  5. 微软模拟飞行2020服务器多少内存,《微软模拟飞行2020》配置公开,想玩爽还需玩家加大投入...
  6. MySQL中表的操作
  7. 虚拟机中mysql-cobar安装_cobar配置安装
  8. springboot session默认失效时间_Spring Boot 整合 Redis,用起来真简单
  9. 深度学习核心技术精讲100篇(二十八)-由浅入深概览机器学习优化算法
  10. Flink从入门到精通100篇(十一)-Java SPI 机制在 Flink SQL 中的应用