{
    "mode": "perldoc",
    "parameter": "Log::Any::Adapter::File",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Log%3A%3AAny%3A%3AAdapter%3A%3AFile/json",
    "generated": "2026-06-11T05:38:26Z",
    "synopsis": "use Log::Any::Adapter ('File', '/path/to/file.log');\n# or\nuse Log::Any::Adapter;\n...\nLog::Any::Adapter->set('File', '/path/to/file.log');\n# with minimum level 'warn'\nuse Log::Any::Adapter (\n'File', '/path/to/file.log', loglevel => 'warn',\n);",
    "sections": {
        "NAME": {
            "content": "Log::Any::Adapter::File - Simple adapter for logging to files\n",
            "subsections": []
        },
        "VERSION": {
            "content": "version 1.710\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use Log::Any::Adapter ('File', '/path/to/file.log');\n\n# or\n\nuse Log::Any::Adapter;\n...\nLog::Any::Adapter->set('File', '/path/to/file.log');\n\n# with minimum level 'warn'\n\nuse Log::Any::Adapter (\n'File', '/path/to/file.log', loglevel => 'warn',\n);\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This simple built-in Log::Any adapter logs each message to the specified file, with a datestamp\nprefix and newline appended. The file is opened for append with autoflush on. If \"flock\" is\navailable, the handle will be locked when writing.\n\nThe \"loglevel\" attribute may be set to define a minimum level to log.\n\nThe \"binmode\" attribute may be set to define a PerlIO layer string to use when opening the file.\nThe default is \":utf8\".\n\nCategory is ignored.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "Log::Any, Log::Any::Adapter\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::File - Simple adapter for logging to files",
    "flags": [],
    "examples": [],
    "see_also": []
}