Barebone\Log

Source

<?php
    
    Barebone\Log::use_stack();
    Barebone\Log::debug('Just for testing','Some variable is current value is: null');
    // some other code
    Barebone\Log::warn('Warning something went wrong.', print_r(new \stdClass, true));
    // some more code
    Barebone\Log::succes('Everything is fine', 'Hello world');
    Barebone\Log::save_stack();

Result of the stack

description: Just for testing
type: 7
customerid:
extra info: Some variable is current value is: null

description: Warning something went wrong.
type: 4
customerid:
extra info: stdClass Object ( )

description: Everything is fine
type: 9
customerid:
extra info: Hello world

  • Barebone\Log

    Barebone\Log extends Barebone\Model
    • [P] $EMERG : mixed
    • [P] $ALERT : mixed
    • [P] $CRIT : mixed
    • [P] $ERR : mixed
    • [P] $WARN : mixed
    • [P] $NOTICE : mixed
    • [P] $INFO : mixed
    • [P] $DEBUG : mixed
    • [P] $EMAIL : mixed
    • [P] $SUCCES : mixed
    • [P] $AUTH : mixed
    • [P] $use_stack : mixed
    • [P] $stack : mixed
    • [P] $dbtable : Barebone\Activerecord
    • [M] use_dbtable( Barebone\Activerecord $dbtable ) : void
    • [M] use_stack( $use_stack ) : void
    • [M] save_stack() : void
    • [M] log( $msg, $query, $type ) : void
    • [M] emerg( $msg, $query ) : void
    • [M] alert( $msg, $query ) : void
    • [M] crit( $msg, $query ) : void
    • [M] err( $msg, $query ) : void
    • [M] warn( $msg, $query ) : void
    • [M] notice( $msg, $query ) : void
    • [M] info( $msg, $query ) : void
    • [M] debug( $msg, $query ) : void
    • [M] email( $msg, $query ) : void
    • [M] succes( $msg, $query ) : void
    • [M] auth( $msg, $query ) : void
    • [M] get_type( $id ) : void
    • Barebone\Model

      Barebone\Model
      • [P] $db : Barebone\Database
      • [P] $view : Barebone\View
      • [P] $layout : Barebone\Layout
      • [P] $controller : Barebone\Controller
      • [M] __construct( Barebone\Controller $controller ) : void
      • [M] setController( Barebone\Controller $controller ) : void
      • [M] getController() : Barebone\Controller
      • [M] setDb( Barebone\Database $db ) : void
      • [M] getDb() : Barebone\Database
      • [M] setLayout( Barebone\Layout $layout ) : void
      • [M] getLayout() : Barebone\Layout
      • [M] setView( Barebone\View $view ) : void
      • [M] getView() : Barebone\View

500 Internal Server Error