Skip to content

Instantly share code, notes, and snippets.

@havasd
havasd / gist:16b535c87620e7269378
Created March 18, 2016 08:12
log4cplus configuration file
log4cplus.rootLogger=DEBUG, Main
log4cplus.logger.Audit=INFO, Audit
log4cplus.appender.Main=log4cplus::DailyRollingFileAppender
log4cplus.appender.Main.Schedule=DAILY
log4cplus.appender.Main.File=logs/tcu_logs.log
log4cplus.appender.Main.CreateDirs=true
log4cplus.appender.Main.Append=true
log4cplus.appender.Main.MaxBackupIndex=100
log4cplus.appender.Main.MaxFileSize=100KB
@havasd
havasd / gist:98843196bbaa1947906d
Created March 18, 2016 08:07
log4cplus segmention fault trace
#0 __memcpy_sse2_unaligned () at ../sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S:36
#1 0x00007ffff73a9f64 in std::string::append(std::string const&) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#2 0x00000000018fc726 in operator+= (
__str="/\000l\306\306\000\000\000\060\000\000\000\000\000\000\000\061\000\000\000\000\000\000\000 \034\300\003\000\000\000\000\200\016\300\003\000\000\000\000\377\377\377\377\000\000\000\000x\000\000\000\000\000\000\000\360Q\000\000\000\000\000\000@\000\000\000\000\000\000\000\340\023\300\003\000\000\000\000\031\000\000\000\000\000\000\000\377\377\377\377\000\000\000\000log4cplus.disableOverride\000\000\000\000\000\000\000a\005\000\000\000\000\000\000 \035\300\003\000\000\000\000\060\221\300\003", '\000' <repeats 20 times>, "\060\017\300\003\000\000\000\000\001\000\000\000\000\000\000\000\377\377\377\377\000\000\000\000y\000\000\000\000\000\000\000"..., this=0x7fffffffd950) at /usr/include/c++/4.8/bits/basic_string.h:933
#3 log4cplus::internal::make_dirs (file_path=
@havasd
havasd / A.java
Last active December 3, 2015 11:16
jacoco example
public class A {
public void f() throws Exception {
throw new Exception(); // currently covered
}
public void f2() throws Exception {
f(); // not covered but should be covered
}
public static void main(String[] args) {