From: Don L. <squ...@th...> - 2015-08-20 00:51:08
|
On 8/19/2015 20:15, Paul Lesniewski wrote: > On 8/19/15, Don Levey <squ...@th...> wrote: >> ... >> I have followed the instructions in the INSTALL document included in the >> plugin package, and yet (even with the default options) I get the >> following error using configtest.php: >> >> ERROR: Squirrel Logger plugin is configured to log the "ERROR" event >> in $sl_logs, but that event is not enabled in $sl_log_events >> >> Ideally, I would have the errors logged, to a file, but even though the >> $sl_logs and $sl_log_events match > > The error tells you they don't "match" and I doubt it's wrong. > >> I get the error above. Any thoughts >> on how I might resolve this? > > Look again. You can post log file snippets if you can't see it. > Well, I don't have a log file yet; that's kinda what I'm trying to do. But the config.php file has: $sl_log_events = array( 'LOGIN', 'LOGOUT', 'TIMEOUT', // 'OUTGOING_MAIL', // 'MASS_MAILING', 'LOGIN_ERROR', // 'ERROR', // 'CAPTCHA', // 'RESTRICT_SENDERS', // 'LOCKOUT', ); (lines 41-52) and $sl_logs = array( 'SYSTEM:LOG_INFO:LOG_MAIL' => array( // 'LOGIN' => "Successful webmail login: by %2 (%3) at %4 on %6: %7", // 'LOGOUT' => "Webmail logout: by %2 (%3) at %4 on %6: %7", // 'TIMEOUT' => "Webmail session timed out: by %2 (%3) at %4 on %6: %7", // 'OUTGOING_MAIL' => "Message sent via webmail: by %2 (%3) at %4 on %6: %7", // 'MASS_MAILING' => "Possible outgoing spam: by %2 (%3) at %4 on %6: %7", // 'LOGIN_ERROR' => "Failed webmail login: by %2 (%3) at %4 on %6: %7", // 'ERROR' => "Webmail error: by %2 (%3) at %4 on %6: %7", // // The following correspond to events generated by other plugins: // // 'CAPTCHA' => "Webmail CAPTCHA litmus: by %2 (%3) at %4 on %6: %7", // 'RESTRICT_SENDERS' => "Failed recipient limit: by %2 (%3) at %4 on %6: %7", // 'LOCKOUT' => "Webmail login page abuse: by %2 (%3) at %4 on %6: %7", ), 'SYSTEM:LOG_ALERT:LOG_AUTH' => array( // 'MASS_MAILING' => "Possible outgoing spam: by %2 (%3) at %4 on %6: %7", ), 'FILE' => array( 'LOGIN' => "%6 [%1] %2 (%3) from %4: %7\n", 'LOGOUT' => "%6 [%1] %2 (%3) from %4: %7\n", 'TIMEOUT' => "%6 [%1] %2 (%3) from %4: %7\n", // 'MASS_MAILING' => "%6 [%1] %2 (%3) from %4: %7\n", 'LOGIN_ERROR' => "%6 [%1] %2 (%3) from %4: %7\n", // 'LOGIN_ERROR' => "%6 [INVALID] %2 (%3) from %4: %7\n", // 'ERROR' => "%6 [%1] %2 (%3) from %4: %7\n", ), 'SQL' => array( // 'LOGIN' => 'LOGIN', // 'LOGOUT' => 'LOGOUT', // 'TIMEOUT' => 'TIMEOUT', // 'MASS_MAILING' => 'MASS_MAILING', // 'LOGIN_ERROR' => 'INVALID', // 'ERROR' => 'ERROR', ), ); (lines 126-162) >From what I can tell, "ERROR" is commented out in both sections. Is there another section I've missed, where this might be set? Yes, my goal is to set ERROR as a loggable event, but if I can't get it to work with the default config, I'm loathe to change it. Thank you for your time, -Don |