error-logging

Good Way to Email Exceptions

江枫思渺然 提交于 2021-02-19 08:23:08
问题 I am running a site on Ubuntu with Apache and using PHP and Zend Framework. I would like exception information emailed to the devs and am wondering about a good way to do this. I don't want to email every single exception right away because if something major happens, our inboxes will get flooded. Instead, I am looking for a way that the exceptions and errors from the past hour can be emailed all at once (up to a certain size limit). I am thinking about writing a cron script to parse Apache's

Where can exceptions raised within FunctionsStartup.Configure be found logged on Azure?

三世轮回 提交于 2021-02-11 14:21:46
问题 In the following code, where is the error logged in Azure? Sometimes the cause of such an error is difficult to identify, and results in "Function host is not running.", I've not been able to find the logged exception. I've worked around this before by writing my own try/catch logging to BlobStorage myself, however, I'd hope there's a more idiomatic way of obtaining the exception. public class Startup : FunctionsStartup { public override void Configure(IFunctionsHostBuilder builder) { throw

Error logging in python not working with azure databricks

左心房为你撑大大i 提交于 2021-02-10 05:37:11
问题 Question related to this problem was not answered by anyone I tried implementing error logging using python in azure data bricks. If i try the below code in python(pycharm) it is working as expected. But when i try the same code in azure databricks(python) it is not creating a file and not writing any contents into the file. I tried creating a file in azure data lake gen2. i have given the path with mount point of data lake store gen2. Can you please help why the python code is not working as

PHP's error_log() vs syslog()

我是研究僧i 提交于 2020-12-30 05:31:50
问题 I'm trying to decide what functionality to use for logging to a custom file. Background We have several PHP processes, both running as Apaches (mod_php) and as Deamons (CLI, forked). I would like to be able to specify a log file per process/task to write to. For both the Apache processes as the Deamons, multiple processes will be writing to the same file. Options PHP offers both error_log() and syslog(). Both seem to offer more or less the same functionality. My question What are the pros and

PHP's error_log() vs syslog()

你。 提交于 2020-12-30 05:30:13
问题 I'm trying to decide what functionality to use for logging to a custom file. Background We have several PHP processes, both running as Apaches (mod_php) and as Deamons (CLI, forked). I would like to be able to specify a log file per process/task to write to. For both the Apache processes as the Deamons, multiple processes will be writing to the same file. Options PHP offers both error_log() and syslog(). Both seem to offer more or less the same functionality. My question What are the pros and

How to print warnings and errors when using setuptools (pip)

蓝咒 提交于 2020-02-24 00:47:40
问题 I am using setuptools to package code such that it can be easily installed using cd project_name && pip install . During the setup process, I want to warn the user about pre-existing config files and print some post install instructions on the system. For example /etc/project_name/project.conf exists. Not copying default config file. I have tried to use print and logging.warning() but still the warnings don't appear when installing using pip. I have a feeling I am missing something obvious.

Retrieving source and destination table names in script

人盡茶涼 提交于 2020-01-16 06:04:26
问题 I've created an SSIS package with a dataflow. The oledb source uses a variable with a sql statement. Following the oledb source, there is a derived column transformation that converts the data. If that breaks, it is redirected to a log table, if it doesnt break it goes to the oledb destination table. Question: Is there a way I can determine what the source and destination tables are when the conversion breaks, for logging purposes? Note: The source table is in the variable used by oledb

ASP.net Custom Errors Loggin

孤街浪徒 提交于 2020-01-14 04:48:07
问题 I'm using the customErrors attribute of the web.config file to present custom errors pages: <customErrors mode="On" defaultRedirect="/errorpage.aspx"> <error statusCode="404" redirect="/404Page.aspx"/> <error statusCode="403" redirect="/403page.aspx"/> </customErrors> Nothing too fancy. Now what I want to do is log the error that occurs when any of these pages are loaded. I'm specifically interested in any exceptions, I don't really care what page the user was on when they got a 404. I'd like

How to turn off Netty library debug output?

僤鯓⒐⒋嵵緔 提交于 2020-01-12 13:58:09
问题 I am using Netty (via the Ning async HTTP library) to retrieve documents via HTTP. This produces a huge amount of debug output the console, as listed below for a single document request. Anyone know how to turn this off? I really don't need to see this output. I'm calling from Scala, if that makes any difference. 15:07:14.273 [run-main] DEBUG c.n.h.c.p.n.NettyAsyncHttpProvider - Non cached request DefaultHttpRequest(chunked: false) GET /api/search.json?q=foo HTTP/1.1 Host: www.documentcloud

How to turn off Netty library debug output?

自古美人都是妖i 提交于 2020-01-12 13:55:39
问题 I am using Netty (via the Ning async HTTP library) to retrieve documents via HTTP. This produces a huge amount of debug output the console, as listed below for a single document request. Anyone know how to turn this off? I really don't need to see this output. I'm calling from Scala, if that makes any difference. 15:07:14.273 [run-main] DEBUG c.n.h.c.p.n.NettyAsyncHttpProvider - Non cached request DefaultHttpRequest(chunked: false) GET /api/search.json?q=foo HTTP/1.1 Host: www.documentcloud