2.0/Modules/os logsearch

From AnopeWiki
Revision as of 22:20, 8 May 2014 by Azander (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Language

English

Service OperServ
Module os_logsearch
Author Anope

Description

This command searches the Services logfiles for messages that match the given pattern. The day and limit argument may be used to specify how many days of logs to search and the number of replies to limit to. By default this command searches one week of logs, and limits replies to 50.

Commands

logsearch [+daysd] [+limitl] pattern

Examples

/msg OperServ LOGSEARCH +1d +25l Fred

Default Configuration

/*
 * os_logsearch
 *
 * Provides the command operserv/logsearch.
 *
 * Used to search services log files.
 */
module
{
        name = "os_logsearch"
 
        /* The log file name to search. There should be a log{} block configured to log
         * to a file of this name.
         */
        logname = "services.log"
}
command { service = "OperServ"; name = "LOGSEARCH"; command = "operserv/logsearch"; permission = "operserv/logsearch"; }