{
    "mode": "perldoc",
    "parameter": "Net::Server::Log::Log::Log4perl",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Net%3A%3AServer%3A%3ALog%3A%3ALog%3A%3ALog4perl/json",
    "generated": "2026-06-11T22:06:52Z",
    "synopsis": "use base qw(Net::Server::PreFork);\nPACKAGE->run(\nlogfile => 'Log::Log4perl',\nlog4perlconf => '/path/to/my/log4perl.conf',\nlog4perllogger => 'myapp',\n);",
    "sections": {
        "NAME": {
            "content": "Net::Server::Log::Log::Log4perl - log via Log4perl\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use base qw(Net::Server::PreFork);\n\nPACKAGE->run(\nlogfile => 'Log::Log4perl',\nlog4perlconf => '/path/to/my/log4perl.conf',\nlog4perllogger => 'myapp',\n);\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This module provides Log::Log4perl style logging to the Net::Server system.\n",
            "subsections": []
        },
        "CONFIGURATION": {
            "content": "logfile\nTo begin using Log::Log4perl logging, simply set the Net::Server logfile configuration\nparameter to \"Log::Log4perl\".\n\nIf the magic name \"Log::Log4perl\" is used, all logging will be directed to the Log4perl\nsystem. If used, the \"log4perlconf\", \"log4perlpoll\", \"log4perllogger\" may also be\ndefined.\n\nlog4perlconf\nOnly available if \"logfile\" is equal to \"Log::Log4perl\". This is the filename of the\nlog4perl configuration file - see Log::Log4perl. If this is not set, will die on startup. If\nthe file is not readable, will die.\n\nlog4perlpoll\nIf set to a value, will initialize with Log::Log4perl::initandwatch with this polling\nvalue. This can also be the string \"HUP\" to re-read the log4perlconf when a HUP signal is\nreceived. If set to 0, no polling is done. See Log::Log4perl for more details.\n\nlog4perllogger\nThis is the facility name. Defaults to \"Net::Server\".\n\nDEFAULT ARGUMENTS FOR Net::Server\nThe following arguments are available in the default \"Net::Server\" or \"Net::Server::Single\"\nmodules. (Other personalities may use additional parameters and may optionally not use\nparameters from the base class.)\n\nKey               Value                    Default\n\n## log4perl parameters (if logfile eq Log::Log4perl)\nlog4perlconf     \"filename\"               will die if not set\nlog4perlpoll     number or HUP            0 (no polling)\nlog4perllogger   \"name\"                   \"Net::Server\"\n",
            "subsections": []
        },
        "METHODS": {
            "content": "\"initialize\"\nThis method is called during the initilizelogging method of Net::Server. It returns a\nsingle code ref that will be stored under the logfunction property of the Net::Server\nobject. That code ref takes loglevel and message as arguments and calls the initialized\nlog4perl system.\n",
            "subsections": []
        },
        "LICENCE": {
            "content": "Distributed under the same terms as Net::Server\n",
            "subsections": []
        }
    },
    "summary": "Net::Server::Log::Log::Log4perl - log via Log4perl",
    "flags": [],
    "examples": [],
    "see_also": []
}