log4j的日志系统包含两个主要概念:Logger与Appender,前者负责触发日志记录动作,后者决定日志输出至何处。
各个Logger实例之间可能存在父子关系,所有实例都有一个共同的root Logger实例,如下文的第一行的rootCategory就是root Logger实例。
log4j示例文件如下:
log4j.rootCategory=info,stdout
# CONSO...
分类:
其他好文 时间:
2014-06-16 11:27:02
阅读次数:
194
Request.ServerVariables("Url")返回服务器地址Request.ServerVariables("Path_Info")客户端提供的路径信息Request.ServerVariables("Appl_Physical_Path")与应用程序元数据库路径相应的物理路径Requ...
分类:
其他好文 时间:
2014-06-15 22:28:53
阅读次数:
265
1. 经常用法,调用Android的API:WifiManagerWifiManager wifi = (WifiManager) getSystemService(Context.WIFI_SERVICE); WifiInfo info = wifi.getConnectionInfo(); re...
分类:
移动开发 时间:
2014-06-15 20:43:19
阅读次数:
246
sql与mysql的比较
1、连接字符串
sql :Initial Catalog(database)=x; --数据库名称
Data Source(source)=x; --服务器
Persist Security Info=True; --集成sql server身份验证
Integrated Security=True...
分类:
数据库 时间:
2014-06-15 20:17:11
阅读次数:
327
$infos = @{}$infos.Path ='c:\Windows'$infos.Recurse =$true$infos.Filter ='*.log'$infos.ErrorAction ='SilentlyContinue'$infos.Remove('Recurse')dir@info...
分类:
其他好文 时间:
2014-06-14 21:49:24
阅读次数:
234
public enum Season2 implements Info{ spring("春天","春风又路江南岸"), summer("夏天","映日荷花别样红"), autumn("秋天","秋水共长天一色"), winter("冬天","千树万树梨花开"); final String seas...
分类:
编程语言 时间:
2014-06-14 20:15:58
阅读次数:
237
localhost:50030/jobtracker.jsplocalhost:50060/tasktracker.jsplocalhost:50070/dfshealth.jsp1. NameNode进程 NameNode节点进程 – 运行在端口9000上INFO org.apache.hadoo...
分类:
其他好文 时间:
2014-06-14 15:11:04
阅读次数:
350
android.util.Log常用的方法有以下5个:Log.v() ,Log.d() ,Log.i() ,Log.w(),Log.e()。按照日志级别从高到低为ERROR, WARN, INFO, DEBUG, VERBOSE.至于日志级别本身的含义,相信用过Apache Log4j,Apache...
分类:
移动开发 时间:
2014-06-14 13:24:17
阅读次数:
226
环境:cocos2d-x 2.1.5ios7.0在info.plist
添加UIViewControllerBasedStatusBarAppearance(View controller-based status bar
appearance) 设置为NO 即可
分类:
移动开发 时间:
2014-06-13 19:13:49
阅读次数:
355
一. VMware ESX Command1. # vmware –v (查看esx版本)2.
# esxcfg-info -a(查看显示ESX硬件,内核,存储,网络等信息)# esxcfg-info -w(显示esx上硬件信息)3. #
esxcfg-firewall –s (列出esx里知道的服...
分类:
其他好文 时间:
2014-06-13 17:31:10
阅读次数:
709