AppserverIo\Appserver\Core\Api\Node\LoggerNode::__construct PHP Method

__construct() public method

Initializes the node with default values.
public __construct ( string $name = '', string $type = '', string $channelName = '', array $processors = [], array $handlers = [], array $params = [] )
$name string The loggers name
$type string The loggers class name
$channelName string The loggers channel name
$processors array The array with nodes for the registered processors
$handlers array The array with nodes for the registered handlers
$params array The handler params
    public function __construct($name = '', $type = '', $channelName = '', array $processors = array(), array $handlers = array(), array $params = array())
    {
        // initialize the UUID
        $this->setUuid($this->newUuid());
        // set the data
        $this->name = $name;
        $this->type = $type;
        $this->channelName = $channelName;
        $this->processors = $processors;
        $this->handlers = $handlers;
        $this->params = $params;
    }