{
    "content": [
        {
            "type": "text",
            "text": "# Net::Server::Log::Sys::Syslog (perldoc)\n\n## NAME\n\nNet::Server::Log::Sys::Syslog - log via Syslog\n\n## SYNOPSIS\n\nuse base qw(Net::Server::PreFork);\nPACKAGE->run(\nlogfile => 'Sys::Syslog',\nsyslogident => 'myapp',\n);\n\n## DESCRIPTION\n\nThis module provides Sys::Syslog logging to the Net::Server system.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **CONFIGURATION**\n- **METHODS**\n- **LICENCE**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Net::Server::Log::Sys::Syslog",
        "section": "",
        "mode": "perldoc",
        "summary": "Net::Server::Log::Sys::Syslog - log via Syslog",
        "synopsis": "use base qw(Net::Server::PreFork);\nPACKAGE->run(\nlogfile => 'Sys::Syslog',\nsyslogident => 'myapp',\n);",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 7,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "CONFIGURATION",
                "lines": 41,
                "subsections": []
            },
            {
                "name": "METHODS",
                "lines": 12,
                "subsections": []
            },
            {
                "name": "LICENCE",
                "lines": 2,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "Net::Server::Log::Sys::Syslog - log via Syslog\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "use base qw(Net::Server::PreFork);\n\nPACKAGE->run(\nlogfile => 'Sys::Syslog',\nsyslogident => 'myapp',\n);\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "This module provides Sys::Syslog logging to the Net::Server system.\n",
                "subsections": []
            },
            "CONFIGURATION": {
                "content": "logfile\nTo begin using Sys::Syslog logging, simply set the Net::Server logfile configuration\nparameter to \"Sys::Syslog\".\n\nIf the magic name \"Sys::Syslog\" is used, all logging will take place via the Sys::Syslog\nmodule. If syslog is used the parameters \"sysloglogsock\", \"syslogident\", and\n\"sysloglogopt\",and \"syslogfacility\" may also be defined.\n\nsysloglogsock\nOnly available if \"logfile\" is equal to \"Sys::Syslog\". May be either unix, inet, native,\nconsole, stream, udp, or tcp, or an arrayref of the types to try. Default is \"unix\" if the\nversion of Sys::Syslog < 0.15 - otherwise the default is to not call setlogsock.\n\nSee Sys::Syslog.\n\nsyslogident\nOnly available if \"logfile\" is equal to \"Sys::Syslog\". Id to prepend on syslog entries.\nDefault is \"netserver\". See Sys::Syslog.\n\nsysloglogopt\nOnly available if \"logfile\" is equal to \"Sys::Syslog\". May be either zero or more of\n\"pid\",\"cons\",\"ndelay\",\"nowait\". Default is \"pid\". See Sys::Syslog.\n\nsyslogfacility\nOnly available if \"logfile\" is equal to \"Sys::Syslog\". See Sys::Syslog and syslog. Default\nis \"daemon\".\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## syslog parameters (if logfile eq Sys::Syslog)\nsysloglogsock    (native|unix|inet|udp\n|tcp|stream|console)    unix (on Sys::Syslog < 0.15)\nsyslogident      \"identity\"               \"netserver\"\nsysloglogopt     (cons|ndelay|nowait|pid) pid\nsyslogfacility   \\w+                      daemon\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\n\"handlelogerror\"\nThis method is called if the logfunction fails for some reason. It is passed the\nNet::Server object, the error that occurred while logging and an arrayref containing the log\nlevel and the message. In turn, this calls the legacy Net::Server::handlesyslogerror\nmethod.\n",
                "subsections": []
            },
            "LICENCE": {
                "content": "Distributed under the same terms as Net::Server\n",
                "subsections": []
            }
        }
    }
}