Sponsored Content
Top Forums UNIX for Dummies Questions & Answers How to write code for a Logging Event? Post 302579487 by theKbStockpiler on Monday 5th of December 2011 08:18:27 PM
Old 12-05-2011
Lets say I'm trying to write to a file and the operation of doing this fails. Wouldn't I have to write additional code to make sure every outcome of my code was successful ,make sure data was written to the said file? If an error is not checked the application will just go on running code. An error is only an error if it is defined as one, otherwise the CPU continues running the code with erroneous data.

An analogy would be checking a simple mathematical addition equation by subtracting one of the addends from the sum to see if the other addend was left. If this check is not made we are not aware of the error and computations using this faulty data continue.


This webpage gives my original post some structure http://wiki.webratio.com/index.php/Debugging_with_application's_logs

I got to this topic indirectly from ELF files so that won't help much. Let's say I'm writing an application and think it will be useful to have some log files to view so when it crashes I will have a clue of what to look at to solve the problems the application is experiencing.

Last edited by theKbStockpiler; 12-05-2011 at 09:58 PM..
 

5 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How does Unix write events into event log?

Hi to everyone. I'm new to this forum and also pretty new to Unix. I'm developing a cross-platform software and I need to register informational and error messages into the event log of the system. Under Windows, this is implemented so far, I need to implement it unded Unix by now. I do know that... (7 Replies)
Discussion started by: mariano_donati
7 Replies

2. IP Networking

read/write,write/write lock with smbclient fails

Hi, We have smb client running on two of the linux boxes and smb server on another linux system. During a backup operation which uses smb, read of a file was allowed while write to the same file was going on.Also simultaneous writes to the same file were allowed.Following are the settings in the... (1 Reply)
Discussion started by: swatidas11
1 Replies

3. Shell Programming and Scripting

Event logging to file and display to console | tee command is not able to log all info.

My intention is to log the output to a file as well as it should be displayed on the console > I have used tee ( tee -a ${filename} ) command for this purpose. This is working as expected for first few outputs, after some event loggin nothing is gettting logged in to the file but It is displaying... (3 Replies)
Discussion started by: sanoop
3 Replies

4. Shell Programming and Scripting

Logging success event into file

Hi, I've the following code to log the errors any after the command is executed. # Ksh 88 Version log_path=/home/etc/fls/fls_log.log del_path=/home/etc/fls/to_day rm $del_path/* >> $log_path 2>&1 But I even want to log if the rm command is success without any error along with... (1 Reply)
Discussion started by: smile689
1 Replies

5. Linux

Syslog not logging successful logging while unlocking server's console

When unlocking a Linux server's console there's no event indicating successful logging Is there a way I can fix this ? I have the following in my rsyslog.conf auth.info /var/log/secure authpriv.info /var/log/secure (1 Reply)
Discussion started by: walterthered
1 Replies
Image::ExifTool::QuickTime(3pm) 			User Contributed Perl Documentation			   Image::ExifTool::QuickTime(3pm)

NAME
Image::ExifTool::QuickTime - Read QuickTime and MP4 meta information SYNOPSIS
This module is used by Image::ExifTool DESCRIPTION
This module contains routines required by Image::ExifTool to extract information from QuickTime and MP4 video, and M4A audio files. AUTHOR
Copyright 2003-2011, Phil Harvey (phil at owl.phy.queensu.ca) This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. REFERENCES
<http://developer.apple.com/mac/library/documentation/QuickTime/QTFF/QTFFChap1/qtff1.html> http://search.cpan.org/dist/MP4-Info-1.04/ <http://search.cpan.org/dist/MP4-Info-1.04/> http://www.geocities.com/xhelmboyx/quicktime/formats/mp4-layout.txt <http://www.geocities.com/xhelmboyx/quicktime/formats/mp4-layout.txt> <http://wiki.multimedia.cx/index.php?title=Apple_QuickTime> http://atomicparsley.sourceforge.net/mpeg-4files.html <http://atomicparsley.sourceforge.net/mpeg-4files.html> <http://wiki.multimedia.cx/index.php?title=QuickTime_container> <http://code.google.com/p/mp4v2/wiki/iTunesMetadata> <http://www.canieti.com.mx/assets/files/1011/IEC_100_1384_DC.pdf> <http://www.adobe.com/devnet/flv/pdf/video_file_format_spec_v10.pdf> SEE ALSO
"QuickTime Tags" in Image::ExifTool::TagNames, Image::ExifTool(3pm) perl v5.12.4 2011-04-14 Image::ExifTool::QuickTime(3pm)
All times are GMT -4. The time now is 09:54 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy