Sponsored Content
Full Discussion: Logging
Top Forums Programming Logging Post 90486 by sumsin on Wednesday 23rd of November 2005 12:51:27 AM
Old 11-23-2005
thanks

but by 'optional logging' I mean that if I use the compilor option -DLOGFILE at compile time, the logging turns on and if I not use this the logging remains turn off, since I am writing log between
Code:
#ifdef LOGFILE
writeLog(...);
#endif

and this whole thing done at compile time, but I want to control it at run-time.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Logging

I have a SCO R5 Open Server Box running at a remote location, and from time to time it seems to "spontaneously" re-boot itself. Is there a specific log file that I can examine to see why the machine is doing this ? Any suggestions gratefully appreciated (1 Reply)
Discussion started by: pcs7088
1 Replies

2. Shell Programming and Scripting

Logging

G'day Just wondering if anyone out there knows how to log files, using the example I provided in the earlier message / question earlier today: :confused: If I was to backup a file, how could I setup a log file to record the filename, date (This one I've got figured), and that the file was... (4 Replies)
Discussion started by: Aussie_Bloke
4 Replies

3. Cybersecurity

logging

is there a log/ how do i make a log that logs every packet inbound or outbound through my server? I want every packet or packet fragment to be logged that comes to my server. (5 Replies)
Discussion started by: The Fridgerator
5 Replies

4. UNIX for Dummies Questions & Answers

logging when someone changes to su

Is there a file that captures info whenever someone logs to su? i know it comes across as standard output on the server, but is it saved anywhere? Time and date info included?? thanks, kym (1 Reply)
Discussion started by: kymberm
1 Replies

5. UNIX for Dummies Questions & Answers

Asking about logging in

Hi, just wriiten a sh script and as my script will try to log into another server to delete some files but when i run , it keeps on saying that my files do not exist. It seems to refer to my local directory instead. Below is my script : FTP_HOST=ip_number FTP_USER="user password" ... (1 Reply)
Discussion started by: blueberry80
1 Replies

6. UNIX for Dummies Questions & Answers

need more logging

Hi all! On our current Solaris 8 machine we only have "standard" logging configured, and now i need to put on more. What i specificly need is time in the logfiles. Ex. When a user is logging in, when a user makes it self SU. etc. Regards... dOzY (3 Replies)
Discussion started by: dozy
3 Replies

7. AIX

Logging off users

What is the best way to logoff users from my Unix system? I have done a search and found that you can do a w or who - find who is on, and ps-ef | grep <user> and kill their processes. But what if you have a bunch of users and you need them off the system quickly? Killing individual processes... (1 Reply)
Discussion started by: outtacontrol
1 Replies

8. Shell Programming and Scripting

logging into

Hi all Can anyone tell me how to login inot telnet,i heard that it is an interface between unix and windows,if i am wrong please correct me. Thanks in anticipation (1 Reply)
Discussion started by: vinayrao
1 Replies

9. Post Here to Contact Site Administrators and Moderators

Constant Logging In (After Logging Out)

Hi Everyone. First, I want to thank all of you for letting me participate in this great group. I am having a bit of a problem. After I get an email from a responder, I login to make my reply. In the mean time I get another response by email from another member, I go to reply to them and I... (6 Replies)
Discussion started by: Ccccc
6 Replies

10. 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
socketfilterfw(8)					    BSD System Manager's Manual 					 socketfilterfw(8)

NAME
socketfilterfw -- Application Firewall daemon SYNOPSIS
socketfilterfw [-hdlk] [--getglobalstate] [--setglobalstate on | off] [--getblockall] [--setblockall on | off] [--listapps] [--getappblocked path] [--blockapp path] [--unblockapp path] [--add path] [--remove path] [--getallowsigned] [--setallowsigned] [--setallowsignedapp] [--getstealthmode] [--setstealthmode on | off] [--getloggingmode] [--setloggingmode on | off] [--getloggingopt] [--setloggingopt throttled | brief | detail] DESCRIPTION
socketfilterfw is a daemon that gets launched on demand when the Application Firewall is enabled. There are also command-line options to change the Application Firewall behavior. OPTIONS
The command line options are as follows: -h Display this help and exit. -d Turn on debugging. -l Do logging and run in daemon mode. -k Kill daemon. --getglobalstate Display if the firewall is enabled or not. --setglobalstate on | off Turn the firewall on or off. --getblockall Show whether block all is enabled or not. --setblockall on | off Enable or disable block all option. --listapps Display a list of paths of added applications. --getappblocked path Show whether connections are blocked or not for the application at the indicated path. --blockapp path Block the application at the indicated path. --unblockapp path Unblock the application at the indicated path. --add path Add the application at the indicated path to the firewall. --remove path Remove the application at the indicated path from the firewall. --getallowsigned Show whether built-in and downloaded signed applications are to automatically receive incoming connections. --setallowsigned Set whether built-in signed applications are to automatically receive incoming connections or not. --setallowsignedapp Set whether downloaded signed applications are to automatically receive incoming connections or not. --getstealthmode Show whether stealth mode is on or not. --setstealthmode on | off Set stealth mode on or off. --getloggingmode Show whether logging is on or not. --setloggingmode on | off Set logging to on or off. --getloggingopt Show logging option. --setloggingopt throttled | brief | detail Set logging option. Mac OS November 10, 2016 Mac OS
All times are GMT -4. The time now is 08:43 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy