{
    "mode": "perldoc",
    "parameter": "Log::Any::Adapter::Syslog",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Log%3A%3AAny%3A%3AAdapter%3A%3ASyslog/json",
    "generated": "2026-07-05T13:51:09Z",
    "synopsis": "use Log::Any::Adapter 'Syslog';\n# ... or ...\nuse Log::Any::Adapter;\nLog::Any::Adapter->set('Syslog');\n# You can override defaults:\nLog::Any::Adapter->set(\n'Syslog',\n# name defaults to basename($0)\nname     => 'my-name',\n# options default to \"pid\"\noptions  => \"pid,ndelay\",\n# facility defaults to \"local7\"\nfacility => \"mail\"\n);",
    "sections": {
        "NAME": {
            "content": "Log::Any::Adapter::Syslog - Send Log::Any logs to syslog\n",
            "subsections": []
        },
        "VERSION": {
            "content": "version 1.710\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use Log::Any::Adapter 'Syslog';\n# ... or ...\nuse Log::Any::Adapter;\nLog::Any::Adapter->set('Syslog');\n\n# You can override defaults:\nLog::Any::Adapter->set(\n'Syslog',\n# name defaults to basename($0)\nname     => 'my-name',\n# options default to \"pid\"\noptions  => \"pid,ndelay\",\n# facility defaults to \"local7\"\nfacility => \"mail\"\n);\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Log::Any is a generic adapter for writing logging into Perl modules; this adapter use the\nSys::Syslog module to direct that output into the OS's logging system (even on Windows).\n",
            "subsections": []
        },
        "CONFIGURATION": {
            "content": "\"Log::Any::Adapter::Syslog\" is designed to work out of the box with no configuration required;\nthe defaults should be reasonably sensible.\n\nYou can override the default configuration by passing extra arguments to the \"Log::Any::Adapter\"\nmethod:\n\nname\nThe *name* argument defaults to the basename of $0 if not supplied, and is inserted into\neach line sent to syslog to identify the source.\n\noptions\nThe *options* configure the behaviour of syslog; see Sys::Syslog for details.\n\nThe default is \"pid\", which includes the PID of the current process after the process name:\n\nexample-process[2345]: something amazing!\n\nThe most likely addition to that is \"perror\" (non-POSIX) which causes syslog to also send a\ncopy of all log messages to the controlling terminal of the process.\n\nfacility\nThe *facility* determines where syslog sends your messages. The default is \"local7\", which\nis not the most useful value ever, but is less bad than assuming the fixed facilities.\n\nSee Sys::Syslog and syslog(3) for details on the available facilities.\n\nloglevel\nMinimum log level. All messages below the selected level will be silently discarded. Default\nis debug.\n\nIf LOGLEVEL environment variable is set, it will be used instead. If TRACE environment\nvariable is set to true, level will be set to 'trace'. If DEBUG environment variable is set\nto true, level will be set to 'debug'. If VERBOSE environment variable is set to true, level\nwill be set to 'info'.If QUIET environment variable is set to true, level will be set to\n'error'.\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "*   Jonathan Swartz <swartz@pobox.com>\n\n*   David Golden <dagolden@cpan.org>\n\n*   Doug Bell <preaction@cpan.org>\n\n*   Daniel Pittman <daniel@rimspace.net>\n\n*   Stephen Thirlwall <sdt@cpan.org>\n",
            "subsections": []
        },
        "COPYRIGHT AND LICENSE": {
            "content": "This software is copyright (c) 2017 by Jonathan Swartz, David Golden, and Doug Bell.\n\nThis is free software; you can redistribute it and/or modify it under the same terms as the Perl\n5 programming language system itself.\n",
            "subsections": []
        }
    },
    "summary": "Log::Any::Adapter::Syslog - Send Log::Any logs to syslog",
    "flags": [],
    "examples": [],
    "see_also": []
}