社区
Web 开发
帖子详情
OSGI中的日志问题,大侠帮忙
xuedekeneng1988
2010-10-13 10:31:35
1.在OSGI中不同的webapp支持不同的logging framework,如何使用一种统一的日志方式?
2.日志信息在每个webapp上单独记录,还是使用一个大的日志文件记录所有呢?(个人比较偏好第一种),如何实现?(不需要具体代码,但是请有这方面经验的朋友还是尽量详细些吧)。
先谢谢各位了^ ^
...全文
33
回复
打赏
收藏
OSGI中的日志问题,大侠帮忙
1.在OSGI中不同的webapp支持不同的logging framework,如何使用一种统一的日志方式? 2.日志信息在每个webapp上单独记录,还是使用一个大的日志文件记录所有呢?(个人比较偏好第一种),如何实现?(不需要具体代码,但是请有这方面经验的朋友还是尽量详细些吧)。 先谢谢各位了^ ^
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
漂亮的WPF界面框架(
OSGi
.NET插件)源码
该界面框架是在ModernUI(http://mui.codeplex.com/)基础上开发的非常现代、漂亮的通用界面框架,通过简单的配置,您可以将自定义的功能注册到页面。它支持三级菜单、支持更换皮肤和字体调整。 使用的
OSGi
.NET插件 欢迎感兴趣的用户下载研究
spring jar包
spring-aop-3.2.2.RELEASE.jar spring-beans-3.2.2.RELEASE.jar spring-context-3.2.2.RELEASE.jar spring-context-support-3.2.2.RELEASE.jar spring-core-3.2.2.RELEASE.jar spring-data-commons-1.5.0.RELEASE.jar spring-data-jpa-1.3.0.RELEASE.jar spring-expression-3.2.2.RELEASE.jar spring-jdbc-3.2.2.RELEASE.jar spring-orm-3.2.2.RELEASE.jar spring-
osgi
-bundle-archetype-1.0.2.jar spring-test-3.2.2.RELEASE.jar spring-tx-3.2.2.RELEASE.jar spring-web-3.2.2.RELEASE.jar spring-webmvc-3.2.2.RELEASE.jar
maven jar包
maven-aether-provider-3.2.1-sources.jar maven-antrun-plugin-1.3.jar maven-archiver-2.2.jar maven-artifact-3.2.1-sources.jar maven-assembly-plugin-2.2-beta-5.jar maven-bundle-plugin-1.0.0.jar maven-clean-plugin-2.4.1.jar maven-clean-plugin-2.5.jar maven-common-artifact-filters-1.3.jar maven-compat-3.2.1-sources.jar maven-compiler-plugin-2.5.1.jar maven-compiler-plugin-3.1.jar maven-core-3.2.1-sources.jar maven-dependency-plugin-2.1.jar maven-dependency-tree-1.0.jar maven-deploy-plugin-2.7.jar maven-deploy-plugin-2.8.1.jar maven-eclipse-plugin-2.9.jar maven-embedder-3.2.1-sources.jar maven-filtering-1.1.jar maven-install-plugin-2.3.1.jar maven-install-plugin-2.4.jar maven-install-plugin-2.5.1.jar maven-jar-plugin-2.4.jar maven-model-3.2.1-sources.jar maven-model-builder-3.2.1-sources.jar maven-
osgi
-0.1.0.jar maven-
osgi
-0.2.0.jar maven-plugin-annotations-3.1.jar maven-plugin-api-3.2.1-sources.jar maven-release-plugin-2.0.jar maven-reporting-api-2.0.6.jar maven-reporting-api-2.0.8.jar maven-reporting-api-2.0.9.jar maven-repository-metadata-3.2.1-sources.jar maven-resources-plugin-2.6.jar maven-settings-3.2.1-sources.jar maven-settings-builder-3.2.1-sources.jar maven-shared-incremental-1.1.jar maven-shared-utils-0.1.jar maven-site-plugin-3.0.jar maven-site-plugin-3.3.jar maven-surefire-common-2.12.4.jar maven-surefire-plugin-2.12.4.jar maven-surefire-plugin-2.17.jar maven-war-plugin-2.3.jar
osgi
学习系列(九)
osgi
日志
Osgi
可以使用的
日志
有好几种方式log4j 、pax logging、logService、slf4j+logback最后研究下来slf4j+logback比较好用,下面演示该方式的配置。 参考文档 http://hbkh2000.iteye.com/blog/1028307 1. 必须jar包 首先我们需要下载需要的一下jar包 SLF4J 下载地址:http://www
Karaf +
OSGI
+ log4j 实现
日志
监控
通常我们在项目
中
手动配置log4j,一般是根据log4j的PropertyConfigurator方法,把log4j的配置文件放在项目根目录下,因为配置文件可以容易找到。 但是本人配置外部log4j的原因是: 1. 在
osgi
项目
中
配置log4j文件时,因为是聚合项目,项目打包bundle后不一定可以找到项目根目录下的配置文件 2. 要在karaf容器
中
发布,并且需要集成
日志
监控和elk功能,外部...
Web 开发
81,095
社区成员
341,712
社区内容
发帖
与我相关
我的任务
Web 开发
Java Web 开发
复制链接
扫一扫
分享
社区描述
Java Web 开发
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章