Mr Duck | 20 May 22:37
Favicon

popa3d that *doesn't* use syslog for logging?

Any plans in the works for adding a non-syslog mechanism for logging?
I'd really like to have a way to log popa3d's daily use into a specific 
file, instead of having to change syslog's setup to manage it.

I can explain my reasons if requested.

Anyway, I'm a C coder as well, and would be happy to implement said 
changes, but I've never done patches or anything for someone else's 
code..  typically I'm the only one who ever works on my projects.  (=

So, what say ye?  Would this be useful for others?

Brad/Mr Duck

Solar Designer | 20 May 23:22

Re: popa3d that *doesn't* use syslog for logging?

On Fri, May 20, 2005 at 03:37:06PM -0500, Mr Duck wrote:
> Any plans in the works for adding a non-syslog mechanism for logging?

No.

> I'd really like to have a way to log popa3d's daily use into a specific 
> file, instead of having to change syslog's setup to manage it.
> 
> I can explain my reasons if requested.

Yes, please.

> Anyway, I'm a C coder as well, and would be happy to implement said 
> changes, but I've never done patches or anything for someone else's 
> code..  typically I'm the only one who ever works on my projects.  (=
> 
> So, what say ye?  Would this be useful for others?

This has been asked for a few times (that's _just_ a few times in
several years!) and noone has provided a valid reason for this so far.

Please keep in mind that one of the design goals of popa3d is
simplicity, and that there're plenty of other POP3 servers out there.

While logging directly to a file isn't a complicated feature to add,
the combined complexity of all imaginable simple features like that is
substantial.

--

-- 
Alexander Peslyak <solar at openwall.com>
(Continue reading)

Mr Duck | 25 May 20:14
Favicon

Re: popa3d that *doesn't* use syslog for logging?

>>I can explain my reasons if requested (for direct file logging)
> Yes, please.

   See below.

> This has been asked for a few times (that's _just_ a few times in
> several years!) and noone has provided a valid reason for this so far.
> Please keep in mind that one of the design goals of popa3d is
> simplicity, and that there're plenty of other POP3 servers out there.
> While logging directly to a file isn't a complicated feature to add,
> the combined complexity of all imaginable simple features like that is
> substantial.

   The bottom line is that popa3d is not my baby, and what I might
consider a reason enough to justify a particular features inclusion
doesn't amount to a hill of beans.

   I fully understand your perspective.

   However, I like to take advantage of daemons that do direct file
logging.  Simply because it makes more sense to me to log everything
into one file, without the need for modifications to the syslog config.
This, of course, is not a difficult thing to do, but I just don't like
messing with "what ain't broke" if I can help it.  By using a command
line switch to direct logging to a particular file, I have the benefits
of:

   * ps shows the CL params in it's output (which tells me to
     where the daemon is logging)
   * syslog.conf doesn't have to be modified (and there is no
(Continue reading)

mrr2ro | 11 May 13:55

Re: popa3d that *doesn't* use syslog for logging?

There are 2 ways to do this!  --I am talking SLACKWARE -- 

recompile popa3d... Before it, RTFInstall instructions-- change the logging
facility on params.h from default to

#define SYSLOG_FACILITY                 LOG_LOCAL0

create an entry for that login facility on your /etc/syslog.conf file. 

Restart syslog (slackware = /etc/rc.d/rc.syslog restart)
I have used slackware since early 1990s and taht is all I am talking about here,
do not ask me about any other distros becaue I do not know them.

The other and for sure shortcut is. 

Stop syslog (Slackware = /etc/rc.d/rc.syslog stop)

Make the following entry on your /etc/syslog.conf file 

#vi /etc/syslog.conf

!!popa3d
*.*                      -/var/log/popa3d

Since /var/log/messages is set to capture anything info or higher or lower than
warn, then make sure popa3d is excluded by entering the line.

;popa3d.none;

After the change, your default line on messages should read something like
(Continue reading)


Gmane