[OCF] ocf-shellfuncs standardization - Comments? Objections?
Nick Stoughton
nick at usenix.org
Mon Sep 19 16:35:17 MDT 2005
Following on with the discussion about log_success_msg and its friends,
how about this idea:
Proposal:
"The log_xxx_msg function shall cause the system to write a xxx message
to an unspecified log file. The format of this message is unspecified.
The log_xxx_msg function may also write a message to standard output."
(xxx = success|warning|failure)
This requires an implementation to do something with the message (syslog
is acceptable - could even be required). It also gives the
implementation permission to write to stdout. Therefore, and app that
doesn't want to see any stdout (just have stuff go in the logfile)
should redirect stdout to /dev/null (or elsewhere). An imp that does not
write anything to stdout is also acceptable (the "may" is just
permission).
Is this more acceptable?
--
Nick Stoughton USENIX/FSG Standards Liaison
nick at usenix.org (510) 388 1413
More information about the OCF
mailing list