NAME
Langertha::Knarr::Handler::RequestLog - Decorator handler that writes per-request JSON logs via Knarr::RequestLog
VERSION
version 1.001
SYNOPSIS
use Langertha::Knarr::RequestLog;
use Langertha::Knarr::Handler::RequestLog;
my $rlog = Langertha::Knarr::RequestLog->new(config => $config);
$handler = Langertha::Knarr::Handler::RequestLog->new(
wrapped => $handler,
request_log => $rlog,
);
DESCRIPTION
Decorator handler that writes a structured per-request log entry for every chat or stream request via Langertha::Knarr::RequestLog. Sync requests log a single line with the result; streaming requests accumulate every delta and log one line with the assembled output when the stream closes.
knarr start mounts this automatically when KNARR_LOG_FILE / KNARR_LOG_DIR (or the YAML logging: section) is set.
wrapped
Required. The inner Langertha::Knarr::Handler being decorated.
request_log
Required. A Langertha::Knarr::RequestLog instance (or any object implementing start_request / end_request).
SUPPORT
Issues
Please report bugs and feature requests on GitHub at https://github.com/Getty/langertha-knarr/issues.
IRC
Join #langertha on irc.perl.org or message Getty directly.
CONTRIBUTING
Contributions are welcome! Please fork the repository and submit a pull request.
AUTHOR
Torsten Raudssus <torsten@raudssus.de> https://raudssus.de/
COPYRIGHT AND LICENSE
This software is copyright (c) 2026 by Torsten Raudssus.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.