PEAR Manual
Prev |  | Next

# PEAR_ErrorStack::setLogger()

PEAR_ErrorStack::setLogger() -- Set up a PEAR::Log object for this error stack

## Synopsis

    require_once 'PEAR/ErrorStack.php';

``void PEAR_ErrorStack::setLogger` (Log &$log)`

## Description

Set a PEAR::Log object to use for a specific error stack instance

## Parameter

Log `&$log`

## Throws

No exceptions thrown.

## Note

This function can not be called statically.

Prev | Home | Next
PEAR_ErrorStack::setErrorMessageTemplate() | Up | PEAR_ErrorStack::setMessageCallback()