<!-- $XConsortium: DtMsgLog.sgm /main/4 1996/10/28 14:50:45 cdedoc $ -->
<!-- (c) Copyright 1995 Digital Equipment Corporation. -->
<!-- (c) Copyright 1995 Hewlett-Packard Company. -->
<!-- (c) Copyright 1995 International Business Machines Corp. -->
<!-- (c) Copyright 1995 Sun Microsystems, Inc. -->
<!-- (c) Copyright 1995 Novell, Inc. -->
<!-- (c) Copyright 1995 FUJITSU LIMITED. -->
<!-- (c) Copyright 1995 Hitachi. -->

<![ %CDE.C.CDE; [<RefEntry Id="CDEMX.XCSA.dtmsglog">]]>
<![ %CDE.C.XO; [<RefEntry Id="XCSA.dtmsglog">]]>
<RefMeta>
<RefEntryTitle>Dt/MsgLog.h</RefEntryTitle>
<ManVolNum>file formats</ManVolNum>
</RefMeta>
<RefNameDiv>
<RefName><Filename>Dt/MsgLog.h</Filename></RefName>
<RefPurpose>message logging definitions
</RefPurpose>
</RefNameDiv>
<!-- CDE Common Source Format, Version 1.0.0-->
<!-- *************************************************************************-->
<!-- **  (c) Copyright 1993, 1994, 1995 Hewlett-Packard Company-->
<!-- **  (c) Copyright 1993, 1994, 1995 International Business Machines Corp.-->
<!-- **  (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.-->
<!-- **  (c) Copyright 1993, 1994, 1995 Novell, Inc.-->
<!-- *************************************************************************-->
<RefSynopsisDiv>
<Synopsis>#include &lt;Dt/MsgLog.h>
</Synopsis>
</RefSynopsisDiv>
<RefSect1>
<Title>DESCRIPTION</Title>
<Para>The
<Filename Role="Header">Dt/MsgLog.h</Filename> header defines data types and function prototypes for
the Message Logging Service.
</Para>
<para>
The <Filename Role="Header">Dt/MsgLog.h</Filename> header provides
the following data type declarations:
</para>
<Synopsis>
typedef enum {
		DtMsgLogInformation,
		DtMsgLogStderr,
		DtMsgLogDebug,
		DtMsgLogWarning,
		DtMsgLogError
	} DtMsgLogType;
</Synopsis>

<Synopsis>
typedef void (*DtMsgLogHandler) (
				 const char 	*<Symbol Role="Variable">program_name</Symbol>,
				 DtMsgLogType	<Symbol Role="Variable">msg_type</Symbol>,
				 const char 	*<Symbol Role="Variable">format</Symbol>,
				 va_list	<Symbol Role="Variable">args</Symbol> );
</Synopsis>

<Para>The <Filename Role="Header">Dt/MsgLog.h</Filename> header defines the following functions:
</Para>
<Synopsis>
void DtMsgLogMesssage(
		      const char   *<Symbol Role="Variable">program_name</Symbol>,
		      DtMsgLogType <Symbol Role="Variable">msg_type</Symbol>,
		      const char   *<Symbol Role="Variable">format</Symbol>,
		      &hellip;);
</Synopsis>

<Synopsis>
DtMsgLogHandler DtMsgLogSetHandler(
				   DtMsgLogHandler   <Symbol Role="Variable">handler</Symbol>;
</Synopsis>

<Synopsis>
FILE *DtMsgLogOpenFile(
		       const char   *<Symbol Role="Variable">type</Symbol>,
		       char	    **<Symbol Role="Variable">filename_return</Symbol>);
</Synopsis>


</RefSect1>
<![ %CDE.C.CDE; [


<RefSect1>
<Title>SEE ALSO</Title>
<Para>
&cdeman.DtMsgLogMessage;,
&cdeman.DtMsgLogSetHandler;, and
&cdeman.DtMsgLogOpenFile;.
</Para>
</RefSect1>
]]>
</RefEntry>


