logging
When logging when is an error fatal?
I consider fatal errors to be when your application can’t do any more useful work. Non-fatal errors are when there’s a problem but your application can still continue to function, even at a reduced level of functionality or performance. Examples of fatal errors include: Running out of disk space on the logging device and you’re … Read more
Best way to aggregate multiple log files from several servers [closed]
Probably the lightest-weight solution for real-time log watching is to use Dancer’s shell in concurrent mode with tail -f: dsh -Mac — tail -f /var/log/apache/*.log The -a is for all machine names that you’ve defined in ~/.dsh/machines.list The -c is for concurrent running of tail The -M prepends the hostname to every line of output.
Should log file streams be opened/closed on each write or kept open during a desktop application’s lifetime?
If you have frequent read/writes it is more efficient to keep the file open for the lifetime with a single open/close. You might want to flush periodically or after each write though. If your application crashes you might not have all the data written to your file. Use fflush on Unix-based systems and FlushFileBuffers on … Read more
Failed to register for BoringSSL log debug updates
UPDATE There’s actually a very convenient way to silence certain logs for a specific simulator: xcrun simctl spawn booted log config –subsystem com.apple.network –category boringssl –mode level:off It is also recommended to silence other common non-important logs as well: xcrun simctl spawn booted log config –subsystem com.apple.CoreBluetooth –mode level:off xcrun simctl spawn booted log config … Read more
Should I log messages to stderr or stdout?
Regular output (the actual result of running the program) should go on stdout, things like you mentioned (e.g. diagnostic, notice, warning, error) on stderr. If there is no “regular output”, I would say that it doesn’t really matter which one you choose. You could argue that the logging is the only output, so that should … Read more
How to check work log for individuals in Jira
We are using the Timesheet Reports and Gadgets Add-On for JIRA. It’s available on the Atlassian Marketplace under a BSD licence, but it’s not free. On our JIRA 5.0.x server, it was accessible from the Projects tab > Summary page > Reports drop-down list > Time Sheet Report item. After upgrading to JIRA 6.x, it … Read more
Delete log files after x days
You could simply use the built-in archiving functionality. This setting will keep 7 old log files in addition to your current log. The cleanup is done by NLog automatically. <?xml version=”1.0″ ?> <nlog xmlns=”http://www.nlog-project.org/schemas/NLog.xsd” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”> <targets> <target name=”file” xsi:type=”File” layout=”${longdate} ${logger} ${message}” fileName=”${basedir}/logs/logfile.txt” archiveFileName=”${basedir}/logs/log.{#}.txt” archiveEvery=”Day” archiveNumbering=”Rolling” maxArchiveFiles=”7″ concurrentWrites=”true” /> </targets> <rules> <logger name=”*” minlevel=”Debug” writeTo=”file” … Read more
Is it possible to specify custom error log format on Nginx?
You can’t specify your own format, but in nginx build-in several level’s of error_log-ing. Syntax: error_log file [ debug | info | notice | warn | error | crit ] Default: ${prefix}/logs/error.log Specifies the file where server (and fastcgi) errors are logged. Default values for the error level: in the main section – error in … Read more
What are the main differences between Graylog2 and Kibana
At my company we started with Graylog2 and recently installed Kibana3. My personal opinion is that Kibana3 is more suited towards non-dev, while Graylog isn’t. Kibana: Pretty dashboards Graphs, charts and images “panel” customization, adding parallel coordinate graphs for example Easy/flexible management of dashboards (they save directly into their own ES index) Easy deployment (just … Read more