Function for Exception Logging

Поиск
Список
Период
Сортировка
От Patrick FICHE
Тема Function for Exception Logging
Дата
Msg-id VI1PR0501MB2574AC24FD43A67E5F4C6CCDEFF30@VI1PR0501MB2574.eurprd05.prod.outlook.com
обсуждение исходный текст
Список pgsql-general

Hi community,

 

I would like to implement a function that would log managed Exceptions into a dedicated table.

For example, I have some code like :

BEGIN

Code generation exception

EXCEPTION

  WHEN OTHERS THEN Log_Error();

END;

 

The Log_Error function would be able to get the exception context / parameters to log the exception parameters into a table.

Is there any way to manage this without providing the Exception parameters as parameters to the Log_Error function ?

 

Thanks,

Patrick

В списке pgsql-general по дате отправления:

Предыдущее
От: Igor Korot
Дата:
Сообщение: Fwd: Log file
Следующее
От: Patrick FICHE
Дата:
Сообщение: Function for Exception Logging