DTMSGLOG(5)

πŸ“¦
version 2.5.3 Β· 2 versions
, in nixos 26.05

okay bestie, welcome to the Dt/MsgLog.h glow-up β€” this is the file formats manual page, and she is all about message logging definitions πŸ’–βœ¨

🌸 NAME 🌸

Dt/MsgLog.h β€” message logging definitions. like, the header that defines the whole message-logging situation 🫢

✨ SYNOPSIS ✨

#include &<Dt/MsgLog.h>

πŸ’… DESCRIPTION πŸ’…

The Dt/MsgLog.h header defines data types and function prototypes for the Message Logging Service. no cap, that's her whole job πŸ’€βœ¨

The Dt/MsgLog.h header provides the following data type declarations:

typedef enum {
          DtMsgLogInformation,
          DtMsgLogStderr,
          DtMsgLogDebug,
          DtMsgLogWarning,
          DtMsgLogError
       } DtMsgLogType;
typedef void (*DtMsgLogHandler) (
                     const char    *program_name,
                     DtMsgLogType  msg_type,
                     const char    *format,
                     va_list  args );

The Dt/MsgLog.h header defines the following functions:

void DtMsgLogMesssage(
                const char   *program_name,
                DtMsgLogType msg_type,
                const char   *format,
                …);
yes, DtMsgLogMesssage really has that triple-s energy in the original, bestie β€” copy it exactly and don't come for me πŸ’€
DtMsgLogHandler DtMsgLogSetHandler(
                       DtMsgLogHandler   handler;
FILE *DtMsgLogOpenFile(
                 const char   *type,
                 char        **filename_return);

πŸŽ€ SEE ALSO πŸŽ€

go check out DtMsgLogMessage(3), DtMsgLogSetHandler(3), and DtMsgLogOpenFile(3) β€” iykyk πŸ’…βœ¨


and that's the cute little sign-off from the Dt/MsgLog.h file formats manual page πŸ’–βœ¨ β€” source/version/date deets weren't hanging out in this copy's footer, so I'm not making them up, periodt πŸ«ΆπŸ’…

πŸ“¦ where this page comes from