{"id":15286199,"url":"https://github.com/david-dick/test-rsyslog","last_synced_at":"2025-07-30T21:05:11.930Z","repository":{"id":41507813,"uuid":"509971204","full_name":"david-dick/test-rsyslog","owner":"david-dick","description":"Creates a temporary instance of rsyslog to run tests against","archived":false,"fork":false,"pushed_at":"2022-11-26T04:56:13.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-29T04:42:50.847Z","etag":null,"topics":["perl","perl-module","perl5","perl5-module","rsyslog","rsyslogd"],"latest_commit_sha":null,"homepage":"https://metacpan.org/dist/Test-Rsyslog","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/david-dick.png","metadata":{"files":{"readme":"README","changelog":"Changes","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-03T08:58:21.000Z","updated_at":"2023-10-22T06:28:03.000Z","dependencies_parsed_at":"2023-01-21T20:19:40.207Z","dependency_job_id":null,"html_url":"https://github.com/david-dick/test-rsyslog","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/david-dick%2Ftest-rsyslog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/david-dick%2Ftest-rsyslog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/david-dick%2Ftest-rsyslog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/david-dick%2Ftest-rsyslog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/david-dick","download_url":"https://codeload.github.com/david-dick/test-rsyslog/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245169924,"owners_count":20571979,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["perl","perl-module","perl5","perl5-module","rsyslog","rsyslogd"],"created_at":"2024-09-30T15:10:56.687Z","updated_at":"2025-03-23T21:22:08.309Z","avatar_url":"https://github.com/david-dick.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"NAME\n\n    Test::Rsyslog - Creates a temporary instance of rsyslog to run tests\n    against\n\nVERSION\n\n    Version 0.07\n\nSYNOPSIS\n\n      my $rsyslog = Test::Rsyslog-\u003enew();\n    \n      Sys::Syslog::setlogsock({ type =\u003e 'unix', path =\u003e $rsyslog-\u003esocket_path() });\n      # or \"Sys::Syslog::setlogsock('unix', $rsyslog-\u003esocket_path());\" for older Sys::Syslogs\n      Sys::Syslog::openlog('program[' . $$ . ']','cons','LOG_LOCAL7');\n      Sys::Syslog::syslog('info|LOG_LOCAL7','This is a test message');\n      Sys::Syslog::closelog();\n    \n      ok($rsyslog-\u003efind('This is a test message'), 'Rsyslog is okay');\n     \n\nDESCRIPTION\n\n    This module allows easy creation and tear down of a rsyslog instance.\n    When the variable goes out of scope, the rsyslog instance is torn down\n    and the file system objects it relies on are removed.\n\nSUBROUTINES/METHODS\n\n new\n\n    This method will setup and start the rsyslog instance. It currently has\n    no parameters, but this may change in response to feature requests\n\n socket_path\n\n    This method returns that path to the UNIX file system socket that is\n    connected to the current running instance of rsyslog\n\n find($string)\n\n    This method searches the existing logs that rsyslog has processed to\n    see if a message has been found matching $string. It will return a list\n    of every line in the log file that matches $string.\n\n start\n\n    This method starts the rsyslog instance\n\n stop\n\n    This method stops the rsyslog instance\n\n alive\n\n    This method checks to make sure that the rsyslogd instance is still\n    running\n\n messages\n\n    This method returns the content of the rsyslogd log file\n\n scrub\n\n    This method truncates the rsyslogd log file. Rsyslogd must be stopped\n    to truncate the log file\n\nDIAGNOSTICS\n\n    Failed to open %s for reading\n\n      There has been a file system error trying to read from the rsyslog\n      logfile.\n\n    Failed to print to %s\n\n      There has been a file system error trying to write to the rsyslog\n      configuration file.\n\n    Failed to fork\n\n      The operating system was unable to fork a subprocess for use by the\n      rsyslog daemon.\n\n    Failed to rmdir %s\n\n      There has been a file system error trying to remove the temporary\n      directory.\n\n    Failed to unlink %s\n\n      There has been a file system error trying to unlink a temporary file\n\n    Failed to close %s\n\n      There has been a file system error trying to close a temporary file\n\n    Failed to mkdir %s\n\n      There has been a file system error trying to make the temporary\n      directory\n\n    Temporary rsyslog daemon is already running...\n\n      The rsyslog daemon has already started\n\n    Unable to truncate while rsyslogd is still running\n\n      This module will not truncate the messages file while rsyslogd could\n      still be writing to it\n\n    Unable to untaint the directory path\n\n      The module generated an unrecognisable temporary path for rsyslogd\n\nCONFIGURATION AND ENVIRONMENT\n\n    Test::Rsyslog requires no configuration files or environment variables.\n\nDEPENDENCIES\n\n    Test::Rsyslog requires Perl 5.6 or better.\n\nINCOMPATIBILITIES\n\n    None reported\n\nBUGS AND LIMITATIONS\n\n    Please report any bugs or feature requests to bug-test-rsyslog at\n    rt.cpan.org, or through the web interface at\n    http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-Rsyslog. I will be\n    notified, and then you'll automatically be notified of progress on your\n    bug as I make changes.\n\nSUPPORT\n\n    You can find documentation for this module with the perldoc command.\n\n        perldoc Test::Rsyslog\n\n    You can also look for information at:\n\n      * RT: CPAN's request tracker (report bugs here)\n\n      http://rt.cpan.org/NoAuth/Bugs.html?Dist=Test-Rsyslog\n\n      * AnnoCPAN: Annotated CPAN documentation\n\n      http://annocpan.org/dist/Test-Rsyslog\n\n      * CPAN Ratings\n\n      http://cpanratings.perl.org/d/Test-Rsyslog\n\n      * Search CPAN\n\n      http://search.cpan.org/dist/Test-Rsyslog/\n\nAUTHOR\n\n    David Dick, \u003cddick at cpan.org\u003e\n\nACKNOWLEDGEMENTS\n\nLICENSE AND COPYRIGHT\n\n    Copyright 2022 David Dick.\n\n    This program is free software; you can redistribute it and/or modify it\n    under the terms of either: the GNU General Public License as published\n    by the Free Software Foundation; or the Artistic License.\n\n    See http://dev.perl.org/licenses/ for more information.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavid-dick%2Ftest-rsyslog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavid-dick%2Ftest-rsyslog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavid-dick%2Ftest-rsyslog/lists"}