site_archiver(a)lists.apple.com
Delivered-To: darwin-dev(a)lists.apple.com
The "store" action saves matching messages in a separate log message database. The database may be
accessed using the syslog command line utility. A database pathname must follow the "store" keyword.
A new database will be created if one does not exist. Two optional parameters, "stayopen" and
"exclude_asldb" may follow the database pathname.
By default, syslogd will open the database, save a matching message, and then close the database. If a
high volume of messages is expected, specifying "stayopen" will improve performance.
Specifying "exclude_asldb" will cause syslogd to save matching messages in the database, but exclude
them from the main syslogd database (/var/log/asl.db).
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (Darwin-dev(a)lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.app…
This email sent to site_archiver(a)lists.apple.com
The "store" action saves matching messages in a separate log message database. The database may be
accessed using the syslog command line utility. A database pathname must follow the "store" keyword.
A new database will be created if one does not exist. Two optional parameters, "stayopen" and
"exclude_asldb" may follow the database pathname.
By default, syslogd will open the database, save a matching message, and then close the database. If a
high volume of messages is expected, specifying "stayopen" will improve performance.
Specifying "exclude_asldb" will cause syslogd to save matching messages in the database, but exclude
them from the main syslogd database (/var/log/asl.db).
site_archiver(a)lists.apple.com
Delivered-To: darwin-dev(a)lists.apple.com
On Jul 2, 2009, at 8:31 AM, Santosh Sinha wrote:
Just a guess, but 15 seconds with the man page shows:
Seems about what you want.
--
Steve Checkoway
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (Darwin-dev(a)lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.app…
But I don't know how to specify store action in my code or how to
use it. Can you help me with some syntax of how to write it in
separate log file.
asl_add_log_file(asl, fd) adds the file descriptor fd to the a set
of file descriptors associated with the client handle asl. Each log
message sent by that client handle is also written to these file
descriptors. Returns 0 on success, non-zero on failure.
This email sent to site_archiver(a)lists.apple.com
site_archiver(a)lists.apple.com
Delivered-To: darwin-dev(a)lists.apple.com
The "store" action saves matching messages in a separate log message database. The database may be
accessed using the syslog command line utility. A database pathname must follow the "store" keyword.
A new database will be created if one does not exist. Two optional parameters, "stayopen" and
"exclude_asldb" may follow the database pathname.
By default, syslogd will open the database, save a matching message, and then close the database. If a
high volume of messages is expected, specifying "stayopen" will improve performance.
Specifying "exclude_asldb" will cause syslogd to save matching messages in the database, but exclude
them from the main syslogd database (/var/log/asl.db).
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (Darwin-dev(a)lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.app…
This email sent to site_archiver(a)lists.apple.com
The "store" action saves matching messages in a separate log message database. The database may be
accessed using the syslog command line utility. A database pathname must follow the "store" keyword.
A new database will be created if one does not exist. Two optional parameters, "stayopen" and
"exclude_asldb" may follow the database pathname.
By default, syslogd will open the database, save a matching message, and then close the database. If a
high volume of messages is expected, specifying "stayopen" will improve performance.
Specifying "exclude_asldb" will cause syslogd to save matching messages in the database, but exclude
them from the main syslogd database (/var/log/asl.db).