Log4j由三个重要的组件构成:日志信息的优先级,日志信息的输出目的地,日志信息的输出格式。日志信息的常用的优先级从高到低有ERROR、WARN、
INFO、DEBUG,分别用来指定这条日志信息的重要程度;日志信息的输出目的地指定了日志将打印到控制台还是文件中;而输出格式则控制了日志信息的显 示内容...
分类:
其他好文 时间:
2014-05-16 03:08:31
阅读次数:
302
document.getElementById("email").setAttribute("属性","属性名");//动态添加ID、class等document.getElementById("email").
remoAttribute("属性","属性名");//动态删除属性、如ID、Clas...
分类:
Web程序 时间:
2014-05-16 01:11:02
阅读次数:
271
ERROR:function@Ordinalxxxmissing今天新定制了一个OS,测试以前的应用程序,程序无法运行,查看串口信息有如下错误提示:ERROR:function@Ordinal1883missing!!!PleaseCheckyourSYSGENvariable!!!这通常是系统缺少某个组件导致的。查看\WINCE600\PUBLIC\COMMON\OAK\LIB\ARMV4I\..
分类:
其他好文 时间:
2014-05-15 19:08:38
阅读次数:
259
server{if(!-e$request_filename){rewrite^(.*)$/index.phplast;}}如果if没有放在location时,在做memc缓存时,在错误日志里会提示以下信息2014/05/1210:45:51[error]11520#0:*325726srcache_fetch:cachesenttruncatedresponsebodywhilesendingtoclient,client:192.168.3.124,..
分类:
其他好文 时间:
2014-05-15 19:02:44
阅读次数:
350
1、gem安装出现下面错误
root@ubuntu:/home/git/gitlab# sudo gem install bundler --no-ri --no-rdoc
ERROR: Could not find a valid gem 'bundler' (>= 0), here is why:
Unable to download data from https...
分类:
其他好文 时间:
2014-05-15 18:19:48
阅读次数:
304
派生类不能直接访问基类的私有成员,若要访问必须使用基类的接口,即通过其成员函数。实现方法有如下两种:1.在基类的声明中增加保护成员,将基类中提供给派生类访问的私有成员定义为保护成员。2.将需要访问基类私有成员的派生类成员函数声明为友元。#includeusing
namespace std;clas...
分类:
其他好文 时间:
2014-05-15 17:44:44
阅读次数:
234
今天在做接口开发的时候,使用curl post ,请求返回数据为 null ,很纳闷,然后使用
curl_errno 打印出来的错误代码为 28 ,curl_error($ch) 打印出来的是Operation timed out after 5000
milliseconds with 0 byt...
分类:
其他好文 时间:
2014-05-15 17:30:47
阅读次数:
252
user nginx; worker_processes 8;error_log
/usr/local/webserver/nginx/logs/nginx_error.log crit;pid
/usr/local/webserver/nginx/nginx.pid;#Spe...
分类:
其他好文 时间:
2014-05-15 14:24:31
阅读次数:
313
C/C++开发,在NDK和源码中输出Log信息的方法!
NDK:
1、包含头文件
#include
2、Android.mk中包含库
LOCAL_LDLIBS += -L$(SYSROOT)/usr/lib -llog
上面这个一定要,不然出现error: undefined reference to '__android_log_print'
LOCAL_SHARED_LIB...
分类:
移动开发 时间:
2014-05-15 13:03:34
阅读次数:
358
git出现error: bad signature fatal: index file
corruptgit的index被损坏解决方法:需要重新生成index文件,rm -f .git/indexgit reset --mixed HEAD
分类:
其他好文 时间:
2014-05-15 11:41:50
阅读次数:
2932