PHP 클래스 cascade\Cascade

저자: Jacob Morrison ([email protected])
상속: implements yii\base\BootstrapInterface
파일 보기 프로젝트 열기: theorchard/monolog-cascade 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$config Config Config class that holds options for all registered loggers This is optional, you can set up your loggers programmatically

공개 메소드들

메소드 설명
createLogger ( string $name, array $handlers = [], array $processors = [] ) : Logger Create a new Logger object and push it to the registry
fileConfig ( string $resource ) Load configuration options from a file or a string
getConfig ( ) : array Return the config options
getLogger ( string $name ) : Logger Get a Logger instance by name. Creates a new one if a Logger with the provided name does not exist
logger ( string $name ) : Logger Alias of getLogger

메소드 상세

createLogger() 공개 정적인 메소드

Create a new Logger object and push it to the registry
또한 보기: Monolog\Logger::__construct
public static createLogger ( string $name, array $handlers = [], array $processors = [] ) : Logger
$name string The logging channel
$handlers array Optional stack of handlers, the first one in the array is called first, etc.
$processors array Optional array of processors
리턴 Monolog\Logger Newly created Logger

fileConfig() 공개 정적인 메소드

Load configuration options from a file or a string
public static fileConfig ( string $resource )
$resource string Path to config file or string or array

getConfig() 공개 정적인 메소드

Return the config options
public static getConfig ( ) : array
리턴 array Array with configuration options

getLogger() 공개 정적인 메소드

Get a Logger instance by name. Creates a new one if a Logger with the provided name does not exist
public static getLogger ( string $name ) : Logger
$name string Name of the requested Logger instance
리턴 Monolog\Logger Requested instance of Logger or new instance

logger() 공개 정적인 메소드

Alias of getLogger
또한 보기: getLogger
public static logger ( string $name ) : Logger
$name string Name of the requested Logger instance
리턴 Monolog\Logger Requested instance of Logger or new instance

프로퍼티 상세

$config 보호되어 있는 정적으로 프로퍼티

Config class that holds options for all registered loggers This is optional, you can set up your loggers programmatically
protected static Config,Cascade $config
리턴 Config