Author image Zakariyya Mughal
and 4 contributors

NAME

Renard::Curie::Component::LogWindow - Component that collects log messages

VERSION

version 0.005

EXTENDS

CONSUMES

ATTRIBUTES

log_messages

An ArrayRef[HashRef] of log messages where each item has the keys

  • category

  • level

  • message

See the "log" method for more details.

METHODS

BUILD

  method BUILD

Initialises the logging window.

show_log_window

  method show_log_window()

Displays the hidden logging window.

log

  method log( (Str) :$category, (Str) :$level, (Str) :$message )

Called by the Renard::Curie::Log::Any::Adapter::LogWindow adapter to send logging messages to this component.

  • $category is category for the log message (e.g, which package generated it).

  • $level is the severity of the message (e.g., info, warning, debug).

  • $message is the message itself.

_scroll_log_textview_to_end

  method _scroll_log_textview_to_end()

Scrolls the text view of logging messages to the end so that the last message is visible.

CALLBACKS

on_clicked_button_clear_cb

  callback on_clicked_button_clear_cb( $event, $self )

Callback for when the Clear button is clicked. This clears the log message text view.

AUTHOR

Project Renard

COPYRIGHT AND LICENSE

This software is copyright (c) 2016 by Project Renard.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.