@@ -4,8 +4,9 @@ AM_CPPFLAGS=-Wall -pthread -m64 -std=c++11 -fPIC
AM_LDFLAGS= -Wall -pthread -m64 -std=c++11 -fPIC
lib_LTLIBRARIES=libzlog.la
+bin_PROGRAMS=logger
+noinst_PROGRAMS=test config_test shmtest fmttest
-noinst_PROGRAMS=logger test config_test shmtest fmttest
AM_CPPFLAGS+=
AM_LDFLAGS+=
@@ -35,7 +35,7 @@ int config_file::open(const char*fname)
if(!f)
{
- log_errno("can't open the inifile:",fname);
+ log_errno("can't open the inifile:%s",fname);
return -1;
}
@@ -199,7 +199,7 @@ static std::shared_ptr<logger> read_config(config_file*f, const char*log_name)
std::atomic<int> g_quit_event(0);
int main(int argc,char*argv[])
- const char*cfg_file="log.ini";
+ const char*cfg_file="../etc/log.ini";
for(int i=1;i<argc;i++)