{
    "mode": "perldoc",
    "parameter": "Log::Any::Adapter::Util",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Log%3A%3AAny%3A%3AAdapter%3A%3AUtil/json",
    "generated": "2026-07-05T09:32:16Z",
    "sections": {
        "NAME": {
            "content": "Log::Any::Adapter::Util - Common utility functions for Log::Any\n",
            "subsections": []
        },
        "VERSION": {
            "content": "version 1.710\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This module has utility functions to help develop Log::Any::Adapter subclasses or\nLog::Any::Proxy formatters/filters. It also has some functions used in internal testing.\n",
            "subsections": []
        },
        "SUBROUTINES": {
            "content": "loggingmethods\nReturns a list of all logging method. E.g. \"trace\", \"info\", etc.\n\ndetectionmethods\nReturns a list of detection methods. E.g. \"istrace\", \"isinfo\", etc.\n\nlogginganddetectionmethods\nReturns a list of logging and detection methods (but not aliases).\n\nloglevelaliases\nReturns key/value pairs mapping aliases to \"official\" names. E.g. \"err\" maps to \"error\".\n\nloggingaliases\nReturns a list of logging alias names. These are the keys from \"loglevelaliases\".\n\ndetectionaliases\nReturns a list of detection aliases. E.g. \"iserr\", \"isfatal\", etc.\n\nnumericlevel\nGiven a level name (or alias), returns the numeric value described above under log level\nconstants. E.g. \"err\" would return 3.\n\ndumponeline\nGiven a reference, returns a one-line Data::Dumper dump with keys sorted.\n\nmakemethod\nGiven a method name, a code reference and a package name, installs the code reference as a\nmethod in the package.\n\nrequiredynamic (DEPRECATED)\nGiven a class name, attempts to load it via require unless the class already has a constructor\navailable. Throws an error on failure. Used internally and may become private in the future.\n\nreadfile (DEPRECATED)\nSlurp a file. Does *not* apply any layers. Used for testing and may become private in the\nfuture.\n\ncmpdeeply (DEPRECATED)\nCompares dumponeline results for two references. Also takes a test label as a third argument.\nUsed for testing and may become private in the future.\n",
            "subsections": []
        },
        "USAGE": {
            "content": "Nothing is exported by default.\n",
            "subsections": [
                {
                    "name": "Log level constants",
                    "content": "If the \":levels\" tag is included in the import list, the following numeric constants will be\nimported:\n\nEMERGENCY => 0\nALERT     => 1\nCRITICAL  => 2\nERROR     => 3\nWARNING   => 4\nNOTICE    => 5\nINFO      => 6\nDEBUG     => 7\nTRACE     => 8\n"
                }
            ]
        },
        "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::Util - Common utility functions for Log::Any",
    "flags": [],
    "examples": [],
    "see_also": []
}