9 use IRCNOW::ParseLog::Znc;
10 use IRCNOW::IO qw(:DEBUG);
12 my $dbase='/var/www/botnow/botnow.db';
13 debug(INFO, "Loading Database $dbase");
14 my $botnowDB = IRCNOW::Database->new(dbpath=>$dbase);
16 my $znclog = IRCNOW::ParseLog::Znc->new(
18 zncLog=>'/home/znc/home/znc/.znc/moddata/adminlog/znc.log',
23 my $lastRecord=$znclog->dbLastRecord() || [];
24 my $data = $znclog->parseLog($lastRecord->[1],$lastRecord->[3],$lastRecord->[4]);
25 debug (WARNINGS, "znclog: New entries to insert: \n" . Dumper($data));
28 $znclog->dbInsertRecord($data);
32 #print Dumper($znclog->parseLog($lastRecord->[1],$lastRecord->[3],$lastRecord->[4]));
34 #$znclog->createTable();