f.u.c.k.u.p
ea-logsqlitehttps://github.com/hagb4rdea-logsqlite.git
** sqlite-based log-writer **
Installation
#installnpm install -g ea-logsqlite #optional: setup path where sqlite file will be stored # (if not configured will look a path in the ENVIRONMENT variables HOME or USERPROFILE)export EA_LOGSQLITE_PATH='/home/user' #write log via pipeecho "hello world" | log -p #write log log hello world #search loglog -s "hello AND world"
Install as module
npm install --save ea-logsqlite
git install
git clone https://github.com/hagb4rd/ea-logsqlite.git npm install
sample use case
//npm -i ea-logsqlite --save var LogSqlite = ; //constructor takes full path to sqlite-file (will try to create one if not found) var log = A: __dirname+"/server-A.sqlite" B: __dirname+"/server-B.sqlite"; //write(text, [tag])logA; //search("word OR (another AND onemore)", [tag])logA;
Output