Overview

Namespaces

  • None
  • splitbrain
    • phpcli
      • tests

Classes

  • logging
  • Minimal
  • Overview
  • Namespace
  • Class

Class logging

Class CLI

Your commandline script should inherit from this class and implement the abstract methods.

splitbrain\phpcli\CLI
Extended by logging
License: MIT
Author: Andreas Gohr andi@splitbrain.org
Located at examples/logging.php
Methods summary
protected
# setup( splitbrain\phpcli\Options $options )

Register options and arguments on the given $options object

Register options and arguments on the given $options object

Parameters

$options

Throws

Exception
protected
# main( splitbrain\phpcli\Options $options )

Your main program

Your main program

Arguments and options have been parsed when this is run

Parameters

$options

Throws

Exception
Methods inherited from splitbrain\phpcli\CLI
__construct(), alert(), checkArgments(), critical(), debug(), emergency(), error(), execute(), fatal(), handleDefaultOptions(), info(), interpolate(), log(), notice(), parseOptions(), registerDefaultOptions(), run(), setupLogging(), success(), warning()
Properties summary
protected string $logdefault
# 'debug'
Properties inherited from splitbrain\phpcli\CLI
$bin, $colors, $loglevel, $options
API documentation generated by ApiGen