|
|
|
|
|
|
| Author |
Message |
Mikhail Teterin *nix forums addict
Joined: 23 Mar 2002
Posts: 56
|
Posted: Thu Mar 28, 2002 6:35 pm Post subject:
Re: review request for bin/11294
|
|
|
On 24 Mar, Dag-Erling Smorgrav wrote:
| Quote: | Mikhail Teterin <mi@aldan.algebra.com> writes:
But this implementation has drawbacks, that mine does not, IMHO:
. the configuration is system wide -- which is not neccessarily
desirable;
[...]
This and all your other objections can be fixed using a global
variable that overrides the symlink (or an API function that sets the
target host).
|
My primary objection is that the problem you are solving -- logging to
some other host by default -- is different from mine -- logging to some
other host at the caller's discretion. Yes, the caller can call the new
API function you suggest (or set a global variable itself, which is
uglier, IMHO).
But the only drawback of my idea, that was pointed out so far is that
it _adds a new API call_. If such an addition _can_ be tolerated -- and
it looks from your response like it can -- I think, solving my problem
your way is inferior to my proposed solution. Which is not to say, the
solution you provided is inferior over all -- it is just for a different
problem.
-mi
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message |
|
| Back to top |
|
 |
Mikhail Teterin *nix forums addict
Joined: 23 Mar 2002
Posts: 56
|
Posted: Tue Mar 26, 2002 6:26 pm Post subject:
Re: review request for bin/11294
|
|
|
On 24 Mar, Dag-Erling Smorgrav wrote:
| Quote: | Mikhail Teterin <mi@aldan.algebra.com> writes:
But this implementation has drawbacks, that mine does not, IMHO:
. the configuration is system wide -- which is not neccessarily
desirable;
[...]
This and all your other objections can be fixed using a global
variable that overrides the symlink (or an API function that sets the
target host).
|
My primary objection is that the problem you are solving -- logging to
some other host by default -- is different from mine -- logging to some
other host at the caller's discretion. Yes, the caller can call the new
API function you suggest (or set a global variable itself, which is
uglier, IMHO).
But the only drawback of my idea, that was pointed out so far is that
it _adds a new API call_. If such an addition _can_ be tolerated -- and
it looks from your response like it can -- I think, solving my problem
your way is inferior to my proposed solution. Which is not to say, the
solution you provided is inferior over all -- it is just for a different
problem.
-mi
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message |
|
| Back to top |
|
 |
Dag-Erling Smorgrav *nix forums Guru Wannabe
Joined: 23 Mar 2002
Posts: 110
|
Posted: Sun Mar 24, 2002 4:04 am Post subject:
Re: review request for bin/11294
|
|
|
Mikhail Teterin <mi@aldan.algebra.com> writes:
| Quote: | But this implementation has drawbacks, that mine does not, IMHO:
. the configuration is system wide -- which is not neccessarily
desirable;
[...]
|
This and all your other objections can be fixed using a global
variable that overrides the symlink (or an API function that sets the
target host).
DES
--
Dag-Erling Smorgrav - des@ofug.org
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message |
|
| Back to top |
|
 |
Mikhail Teterin *nix forums addict
Joined: 23 Mar 2002
Posts: 56
|
Posted: Sun Mar 24, 2002 12:37 am Post subject:
Re: review request for bin/11294
|
|
|
On 23 Mar, Dag-Erling Smorgrav wrote:
| Quote: | Here's a patch. To log to a remote host, make /etc/loghost a symlink
to its name or IP address ('ln -fs 10.0.5.14 /etc/loghost').
|
But this implementation has drawbacks, that mine does not, IMHO:
. the configuration is system wide -- which is not neccessarily
desirable;
. logger(1) -- and any other application, which wants this
functionalitystill needs its own implementation;
Most importantly, however, your design goal (allow to specify loghost
different from localhost) is different from mine. I wanted to add
an API call to log directly to another host -- at an application's
discretion...
My API call will not even add any new bloat to the OS -- whatever is
added to the libc is removed from the logger(1) :-)
Your idea (and a similar one by Joe Abley, where an env-variable is used
instead of a symlink) can then be implemented using this same new API
call I proposed.
-mi
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message |
|
| Back to top |
|
 |
Dag-Erling Smorgrav *nix forums Guru Wannabe
Joined: 23 Mar 2002
Posts: 110
|
Posted: Sat Mar 23, 2002 9:52 pm Post subject:
Re: review request for bin/11294
|
|
|
Here's a patch. To log to a remote host, make /etc/loghost a symlink
to its name or IP address ('ln -fs 10.0.5.14 /etc/loghost').
DES
--
Dag-Erling Smorgrav - des@ofug.org |
|
| Back to top |
|
 |
Mikhail Teterin *nix forums addict
Joined: 23 Mar 2002
Posts: 56
|
Posted: Sat Mar 23, 2002 8:19 pm Post subject:
Re: review request for bin/11294
|
|
|
On 23 Mar, Joe Abley wrote:
| Quote: |
On Saturday, March 23, 2002, at 02:28 , Mikhail Teterin wrote:
The PR is nearly 3 years old. Could someone, please, review the proposed
improvement:
http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/11294
the -h option to logger(1) is present in 4-STABLE.
|
It is, but the needed functionality is implemented entirely in the
logger(1) itself. So for another program to have it, it needs to
implement its own. Back three years ago, I needed to do such a thing,
and figured this is something, that should be available system-wide.
Hence this PR...
-mi
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message |
|
| Back to top |
|
 |
Dag-Erling Smorgrav *nix forums Guru Wannabe
Joined: 23 Mar 2002
Posts: 110
|
Posted: Sat Mar 23, 2002 7:28 pm Post subject:
Re: review request for bin/11294
|
|
|
Mikhail Teterin <mi@aldan.algebra.com> writes:
| Quote: | The PR is nearly 3 years old. Could someone, please, review the proposed
improvement:
http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/11294
|
The idea is good but the implementation sucks. It should be possible
to configure syslog(3) to send to a remote host, without the need for
new library functions. This could be done by modifying connectlog()
to check a config file (or just a symlink in /etc, malloc.conf(5)-
style) and open a UDP socket instead of a Unix socket. You can set
the default destination address for a datagram socket with connect(2),
so vsyslog(3) doesn't need to know anything about it. Of course, this
assumes that the syslog(3) packet format is the same for local and
remote logging.
We also need to somehow fix the problem where rapid bursts of messages
will overflow the syslogd( socket and end up on the console instead
(this forced me to disable debugging messages in the default libpam
build; messages that syslogd( would normally have suppressed ended
up on the console). I'm not sure how to fix it, though.
DES
--
Dag-Erling Smorgrav - des@ofug.org
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message |
|
| Back to top |
|
 |
Joe Abley *nix forums beginner
Joined: 23 Mar 2002
Posts: 5
|
Posted: Sat Mar 23, 2002 7:28 pm Post subject:
Re: review request for bin/11294
|
|
|
On Saturday, March 23, 2002, at 02:28 , Mikhail Teterin wrote:
| Quote: | The PR is nearly 3 years old. Could someone, please, review the proposed
improvement:
http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/11294
|
the -h option to logger(1) is present in 4-STABLE.
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message |
|
| Back to top |
|
 |
Alfred Perlstein *nix forums addict
Joined: 19 Mar 2002
Posts: 67
|
Posted: Sat Mar 23, 2002 7:28 pm Post subject:
Re: review request for bin/11294
|
|
|
* Mikhail Teterin <mi@aldan.algebra.com> [020323 11:29] wrote:
| Quote: | The PR is nearly 3 years old. Could someone, please, review the proposed
improvement:
http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/11294
IMHO, it may be usefull for an embedded installation, that does not want
to run syslogd locally, but wishes to be able to log messages to a remote
host.
|
Wouldn't it make sense to just do this via a config file of some
sort? This would allow one to modify behavior without recompiling
the binaries. :)
--
-Alfred Perlstein [alfred@freebsd.org]
'Instead of asking why a piece of software is using "1970s technology,"
start asking why software is ignoring 30 years of accumulated wisdom.'
Tax deductible donations for FreeBSD: http://www.freebsdfoundation.org/
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message |
|
| Back to top |
|
 |
Mikhail Teterin *nix forums addict
Joined: 23 Mar 2002
Posts: 56
|
Posted: Sat Mar 23, 2002 7:28 pm Post subject:
review request for bin/11294
|
|
|
The PR is nearly 3 years old. Could someone, please, review the proposed
improvement:
http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/11294
IMHO, it may be usefull for an embedded installation, that does not want
to run syslogd locally, but wishes to be able to log messages to a remote
host.
Thanks!
-mi
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Thu Jan 08, 2009 5:23 am | All times are GMT
|
|
Debt Consolidation | Debt Consolidation | Pacotes Reveillon Salvador | Car salvage | Debt Consolidation
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|