DslConsole.class.php (621B)
1 <?php 2 3 namespace cms\generator\dsl; 4 5 use dsl\context\BaseScriptableObject; 6 use logger\Logger; 7 8 /** 9 * Logging. 10 * 11 * Wraps around the internal CMS logging. 12 * 13 * @package cms\generator\dsl 14 */ 15 class DslConsole extends BaseScriptableObject 16 { 17 18 public function log( $text ) 19 { 20 Logger::info( $text ); 21 } 22 public function debug( $text ) 23 { 24 Logger::debug( $text ); 25 } 26 public function trace( $text ) 27 { 28 Logger::trace( $text ); 29 } 30 public function info( $text ) 31 { 32 Logger::info( $text ); 33 } 34 public function warn( $text ) 35 { 36 Logger::warn( $text ); 37 } 38 public function error( $text ) 39 { 40 Logger::error( $text ); 41 } 42 }