NAME

Stencil::Log

ABSTRACT

Represents a Stencil log file

SYNOPSIS

  use Stencil::Log;
  use Stencil::Repo;

  my $repo = Stencil::Repo->new;

  $repo->store('logs')->mkpath;

  my $log = Stencil::Log->new(repo => $repo);

DESCRIPTION

This package provides a class which represents a Stencil log file.

LIBRARIES

This package uses type constraints from:

Types::Standard

ATTRIBUTES

This package has the following attributes:

file

  file(Object)

This attribute is read-only, accepts (Object) values, and is optional.

handler

  handler(InstanceOf["FlightRecorder"])

This attribute is read-only, accepts (InstanceOf["FlightRecorder"]) values, and is optional.

repo

  repo(Object)

This attribute is read-only, accepts (Object) values, and is required.

METHODS

This package implements the following methods:

debug

  debug(Str @args) : Any

The debug method proxies to "debug" in FlightRecorder via the handler attribute.

debug example #1
  # given: synopsis

  $log->debug('debug message');

fatal

  fatal(Str @args) : Any

The fatal method proxies to "fatal" in FlightRecorder via the handler attribute.

fatal example #1
  # given: synopsis

  $log->fatal('fatal message');

info

  info(Str @args) : Any

The info method proxies to "info" in FlightRecorder via the handler attribute.

info example #1
  # given: synopsis

  $log->info('info message');

output

  output() : Str

The output method proxies to "output" in FlightRecorder via the handler attribute.

output example #1
  # given: synopsis

  $log->info('info message')->output;

warn

  warn(Str @args) : Any

The warn method proxies to "warn" in FlightRecorder the handler attribute.

warn example #1
  # given: synopsis

  $log->warn('warn message');

AUTHOR

Al Newkirk, awncorp@cpan.org

LICENSE

Copyright (C) 2011-2019, Al Newkirk, et al.

This is free software; you can redistribute it and/or modify it under the terms of the The Apache License, Version 2.0, as elucidated in the "license file".

PROJECT

Wiki

Project

Initiatives

Milestones

Contributing

Issues