You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the \ac{PMIx} library does not itself perform this operation, then it is required to pass any attributes provided by the client to the host environment for processing. In addition, it must include the following attributes in the passed \refarg{info} array:
890
+
If the \ac{PMIx} library does not itself perform this operation, then it is required to pass any attributes provided by the client to the host environment for processing. In addition, it must include the following attributes in the passed \refarg{directives} array:
891
891
892
892
\pasteAttributeItem{PMIX_USERID}
893
893
\pasteAttributeItem{PMIX_GRPID}
894
894
895
-
Host environments or \ac{PMIx} libraries that implement support for this operation are required to support the following attributes:
895
+
Host environments or \ac{PMIx} libraries that implement support for this operation are required to support the following attributes when provided as part of the \refarg{data} array:
896
896
897
897
\pasteAttributeItem{PMIX_LOG_STDERR}
898
898
\pasteAttributeItem{PMIX_LOG_STDOUT}
899
899
\pasteAttributeItem{PMIX_LOG_SYSLOG}
900
-
\pasteAttributeItem{PMIX_LOG_LOCAL_SYSLOG}
901
-
\pasteAttributeItem{PMIX_LOG_GLOBAL_SYSLOG}
900
+
901
+
Similarly, the following attributes must be supported when provided as part of the \refarg{directives} array:
902
+
902
903
\pasteAttributeItem{PMIX_LOG_SYSLOG_PRI}
903
904
\pasteAttributeItem{PMIX_LOG_ONCE}
904
905
905
906
\reqattrend
906
907
907
908
\optattrstart
908
-
The following attributes are optional for host environments or \ac{PMIx} libraries that support this operation:
909
+
The following attributes are optional for host environments or \ac{PMIx} libraries that support this operation when provided as part of the \refarg{data} array:
910
+
911
+
\pasteAttributeItem{PMIX_LOG_EMAIL}
912
+
\pasteAttributeItem{PMIX_LOG_JOB_RECORD}
913
+
\pasteAttributeItem{PMIX_LOG_GLOBAL_DATASTORE}
914
+
\pasteAttributeItem{PMIX_LOG_LOCAL_SYSLOG}
915
+
\pasteAttributeItem{PMIX_LOG_GLOBAL_SYSLOG}
916
+
917
+
Similarly, the following attributes are optional when provided as part of the \refarg{directives} array:
909
918
910
919
\pasteAttributeItem{PMIX_LOG_SOURCE}
911
920
\pasteAttributeItem{PMIX_LOG_TIMESTAMP}
912
921
\pasteAttributeItem{PMIX_LOG_GENERATE_TIMESTAMP}
913
922
\pasteAttributeItem{PMIX_LOG_TAG_OUTPUT}
914
923
\pasteAttributeItem{PMIX_LOG_TIMESTAMP_OUTPUT}
915
924
\pasteAttributeItem{PMIX_LOG_XML_OUTPUT}
916
-
\pasteAttributeItem{PMIX_LOG_EMAIL}
917
-
\pasteAttributeItem{PMIX_LOG_EMAIL_ADDR}
918
-
\pasteAttributeItem{PMIX_LOG_EMAIL_SENDER_ADDR}
919
-
\pasteAttributeItem{PMIX_LOG_EMAIL_SERVER}
920
-
\pasteAttributeItem{PMIX_LOG_EMAIL_SRVR_PORT}
921
-
\pasteAttributeItem{PMIX_LOG_EMAIL_SUBJECT}
922
-
\pasteAttributeItem{PMIX_LOG_EMAIL_MSG}
923
-
\pasteAttributeItem{PMIX_LOG_JOB_RECORD}
924
-
\pasteAttributeItem{PMIX_LOG_GLOBAL_DATASTORE}
925
+
925
926
926
927
\optattrend
927
928
928
929
%%%%
929
930
\descr
930
931
931
-
Log data subject to the services offered by the host environment. The data to be logged is provided in the \refarg{data} array. The (optional) \refarg{directives} can be used to direct the choice of logging channel.
932
+
Log data subject to the services offered by the host environment. The \refarg{data} array is used to specify the information that is to be logged, while the \refarg{directives} array is used to control formatting and other output options. For example, a user can:
933
+
934
+
\begin{itemize}
935
+
\item log a message to \code{stderr} by including \refattr{PMIX_LOG_STDERR} in the \refarg{data} array, with the message itself provided as a string value in that \refstruct{pmix_info_t} element. They can also have that message time-stamped by including the \refattr{PMIX_LOG_TIMESTAMP} attribute in the \refarg{directives} array.
936
+
\item send an email to one or more recipients by including \refattr{PMIX_LOG_EMAIL} in the \refarg{data} array, with the \refstruct{pmix_data_array_t} value containing the message, recipient, and any required server information. Note that any \refarg{directives} (e.g., \refattr{PMIX_LOG_GENERATE_TIMESTAMP}) will be applied to the email request.
937
+
\item log a message to the syslog on the system console by including \refattr{PMIX_LOG_GLOBAL_SYSLOG} in the \refarg{data} array, with the message itself provided as a string value in that \refstruct{pmix_info_t} element. The syslog priority could be set with \refattr{PMIX_LOG_SYSLOG_PRI} in the \refarg{directives} array.
938
+
\end{itemize}
939
+
940
+
Note that it is possible to log multiple messages to different channels using a single call to \refapi{PMIx_Log}. For instance, the above examples could be combined into a single call to \refapi{PMIx_Log}. In this case, only directives that are applicable to a channel will be used in outputting to that channel. For this example, a directive such as \refattr{PMIX_LOG_TIMESTAMP} would cause all three messages to be time-stamped, but a \refattr{PMIX_LOG_SYSLOG_PRI} directive would only be applied to the syslog channel.
941
+
942
+
Multiple instances of the same attribute can be included in the \refarg{data} array - e.g., to send different emails to various recipients.
932
943
933
944
\adviceuserstart
934
945
It is strongly recommended that the \refapi{PMIx_Log} API not be used by applications for streaming data as it is not a ``performant'' transport and can perturb the application since it involves the local \ac{PMIx} server and host \ac{SMS} daemon. Note that a return of \refconst{PMIX_SUCCESS} only denotes that the data was successfully handed to the appropriate system call (for local channels) or the host environment and does not indicate receipt at the final destination.
If the \ac{PMIx} library does not itself perform this operation, then it is required to pass any attributes provided by the client to the host environment for processing. In addition, it must include the following attributes in the passed \refarg{info} array:
988
+
If the \ac{PMIx} library does not itself perform this operation, then it is required to pass any attributes provided by the client to the host environment for processing. In addition, it must include the following attributes in the passed \refarg{directives} array:
978
989
979
990
\pasteAttributeItem{PMIX_USERID}
980
991
\pasteAttributeItem{PMIX_GRPID}
981
992
982
-
Host environments or \ac{PMIx} libraries that implement support for this operation are required to support the following attributes:
993
+
Host environments or \ac{PMIx} libraries that implement support for this operation are required to support the following attributes when provided as part of the \refarg{data} array:
983
994
984
995
\pasteAttributeItem{PMIX_LOG_STDERR}
985
996
\pasteAttributeItem{PMIX_LOG_STDOUT}
986
997
\pasteAttributeItem{PMIX_LOG_SYSLOG}
987
-
\pasteAttributeItem{PMIX_LOG_LOCAL_SYSLOG}
988
-
\pasteAttributeItem{PMIX_LOG_GLOBAL_SYSLOG}
998
+
999
+
Similarly, the following attributes must be supported when provided as part of the \refarg{directives} array:
1000
+
989
1001
\pasteAttributeItem{PMIX_LOG_SYSLOG_PRI}
990
1002
\pasteAttributeItem{PMIX_LOG_ONCE}
991
1003
992
1004
\reqattrend
993
1005
994
1006
\optattrstart
995
-
The following attributes are optional for host environments or \ac{PMIx} libraries that support this operation:
1007
+
The following attributes are optional for host environments or \ac{PMIx} libraries that support this operation when provided as part of the \refarg{data} array:
1008
+
1009
+
\pasteAttributeItem{PMIX_LOG_EMAIL}
1010
+
\pasteAttributeItem{PMIX_LOG_JOB_RECORD}
1011
+
\pasteAttributeItem{PMIX_LOG_GLOBAL_DATASTORE}
1012
+
\pasteAttributeItem{PMIX_LOG_LOCAL_SYSLOG}
1013
+
\pasteAttributeItem{PMIX_LOG_GLOBAL_SYSLOG}
1014
+
1015
+
Similarly, the following attributes are optional when provided as part of the \refarg{directives} array:
996
1016
997
1017
\pasteAttributeItem{PMIX_LOG_SOURCE}
998
1018
\pasteAttributeItem{PMIX_LOG_TIMESTAMP}
999
1019
\pasteAttributeItem{PMIX_LOG_GENERATE_TIMESTAMP}
1000
1020
\pasteAttributeItem{PMIX_LOG_TAG_OUTPUT}
1001
1021
\pasteAttributeItem{PMIX_LOG_TIMESTAMP_OUTPUT}
1002
1022
\pasteAttributeItem{PMIX_LOG_XML_OUTPUT}
1003
-
\pasteAttributeItem{PMIX_LOG_EMAIL}
1004
-
\pasteAttributeItem{PMIX_LOG_EMAIL_ADDR}
1005
-
\pasteAttributeItem{PMIX_LOG_EMAIL_SENDER_ADDR}
1006
-
\pasteAttributeItem{PMIX_LOG_EMAIL_SERVER}
1007
-
\pasteAttributeItem{PMIX_LOG_EMAIL_SRVR_PORT}
1008
-
\pasteAttributeItem{PMIX_LOG_EMAIL_SUBJECT}
1009
-
\pasteAttributeItem{PMIX_LOG_EMAIL_MSG}
1010
-
\pasteAttributeItem{PMIX_LOG_JOB_RECORD}
1011
-
\pasteAttributeItem{PMIX_LOG_GLOBAL_DATASTORE}
1023
+
1012
1024
1013
1025
\optattrend
1014
1026
1015
1027
%%%%
1016
1028
\descr
1017
1029
1018
-
Log data subject to the services offered by the host environment. The data to be logged is provided in the \refarg{data} array. The (optional) \refarg{directives} can be used to direct the choice of logging channel.
1019
-
The callback function will be executed when the log operation has been completed. The \refarg{data} and \refarg{directives} arrays must be maintained until the callback is provided.
1030
+
Log data subject to the services offered by the host environment. See the description in \refapi{PMIx_Log} for details on use of the \refarg{data} and \refarg{directives} arrays.
1020
1031
1021
1032
\adviceuserstart
1022
1033
It is strongly recommended that the \refapi{PMIx_Log_nb} API not be used by applications for streaming data as it is not a ``performant'' transport and can perturb the application since it involves the local \ac{PMIx} server and host \ac{SMS} daemon. Note that a return of \refconst{PMIX_SUCCESS} only denotes that the data was successfully handed to the appropriate system call (for local channels) or the host environment and does not indicate receipt at the final destination.
0 commit comments