2.0/Modules/os logsearch

From AnopeWiki
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"; }