OPCUA::Open62541::Test::Logger - manage open62541 log file for testing
use OPCUA::Open62541::Test::Logger; my $logger = OPCUA::Open62541::Test::Server->logger();
Write the output of a server into a log file. Wait until a given regular expression matches a line in the file.
Create a new test logger instance. Usually called from test server.
Required logger instance of the client or server config.
Start writing to log file.
Check if regex is present in the log file. If the process is still alive and a timeout is given, repeat the check for the number of seconds. If count is given, wait for this number of matches. Returns the number of matches.
Optionally set the id of the process that is writing to log file. When grepping it will not wait for more input if the process is dead. Returns the pid.
OPCUA::Open62541, OPCUA::Open62541::Test::Server
Alexander Bluhm <bluhm@genua.de>,
Copyright (c) 2020 Alexander Bluhm
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Thanks to genua GmbH, https://www.genua.de/ for sponsoring this work.
To install OPCUA::Open62541, copy and paste the appropriate command in to your terminal.
cpanm
cpanm OPCUA::Open62541
CPAN shell
perl -MCPAN -e shell install OPCUA::Open62541
For more information on module installation, please visit the detailed CPAN module installation guide.