NAME

Kubernetes::REST::LogEvent - A single log line from the Kubernetes Pod Log API

VERSION

version 1.108

SYNOPSIS

$api->log('Pod', 'my-pod',
    namespace => 'default',
    follow    => 1,
    on_line   => sub {
        my ($event) = @_;
        say $event->line;
    },
);

DESCRIPTION

Represents a single log line from the Kubernetes Pod Log API. Wraps the raw text line in a typed object for consistent event handling, analogous to Kubernetes::REST::WatchEvent for the Watch API.

line

Required. The log line text, as raw bytes rather than decoded characters - container output is not guaranteed to be UTF-8, or even text (see "Encoding contract" in Kubernetes::REST::Role::IO). Does not include the trailing newline.

SEE ALSO

SUPPORT

Issues

Please report bugs and feature requests on GitHub at https://github.com/pplu/kubernetes-rest/issues.

IRC

Join #kubernetes on irc.perl.org or message Getty directly.

CONTRIBUTING

Contributions are welcome! Please fork the repository and submit a pull request.

AUTHORS

  • Torsten Raudssus <getty@cpan.org>

  • Jose Luis Martinez Torres <jlmartin@cpan.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2019-2026 by Jose Luis Martinez Torres <jlmartin@cpan.org>.

This is free software, licensed under:

The Apache License, Version 2.0, January 2004