public function tree($trans = false)
    {
        $tree = $this->stats();

        array_walk($tree, function(&$count, $level) use ($trans) {
            $count = [
                'name'  => $trans ? log_levels()->get($level) : $level,
                'count' => $count,
            ];
        });

        return $tree;
    }
public function tree($trans = false)
    {
        $tree = $this->stats();

        array_walk($tree, function(&$count, $level) use ($trans) {
            $count = [
                'name'  => $trans ? log_levels()->get($level) : $level,
                'count' => $count,
            ];
        });

        return $tree;
    }
public function tree ( $ trans = false ) { $ tree = $ this -> stats ( ) ; array_walk ( $ tree , function ( & $ count , $ level ) use ( $ trans ) { $ count = [ 'name' => $ trans ? log_levels ( ) -> get ( $ level ) : $ level , 'count' => $ count , ] ; } ) ; return $ tree ; }
Get the log entries navigation tree.

@param  bool|false  $trans

@return array
Get the log entries navigation tree .