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
首先需要一个ttf文件的字体。在ios中的方法:把ttf文件放入资源文件下,然后在你的工程的Info.plist文件中新建一行(Add
Row),添加key为:Fonts provided by
application,类型为Array或Dictionary都行;添加Value为XXX.ttf(你字...
分类:
其他好文 时间:
2014-06-13 19:56:52
阅读次数:
428
环境: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
void PrintClassName(void *p){ type_info *** vtable
= (type_info ***)(*(int*)p); type_info ** v1 = vtable[-1]; type_info * v =
v1[3]; print...
分类:
编程语言 时间:
2014-06-12 20:41:59
阅读次数:
309