*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> strlog (9r)              
Title
Content
Arch
Section
 

strlog(9r)

Contents


NAME    [Toc]    [Back]

       strlog - General: Submits messages for logging

SYNOPSIS    [Toc]    [Back]

       #include <sys/stream.h> #include <sys/strlog.h>

       int strlog(
               short driverid,
               short minorid,
               char level,
               unsigned short flags,
               char *format,
               unsigned arg1,

       );

ARGUMENTS    [Toc]    [Back]

       Specifies  the identification number of the driver or module
 submitting the message.  Specifies the  identification
       number for a particular minor device.  Specifies the tracing
 level for selective  screening  of  low-priority  messages.
   Specifies  a  flag value. You can pass one of the
       following valid flag values: Pass the message to the error
       logger.   Pass  the message to the tracer.  Print the message
 on the console terminal.  Specifies  a  printf  style
       format string.  The % s, % e, % g, and % G formats are not
       allowed.  Specifies zero or more arguments to  the  printf
       routine.

DESCRIPTION    [Toc]    [Back]

       The  strlog  routine submits formatted messages to the log
       driver. You can retrieve the messages with the getmsg system
 call. The flags argument specifies the type of message
       and where it is to be sent. The  strace  command  receives
       messages  from  the log driver and sends them to the standard
 output. The strerr  daemon  receives  error  messages
       from  the  log  driver  and  appends them to a file called
       /var/adm/streams/error.mm-dd, where mm-dd  identifies  the
       date of the error message.

RETURN VALUES    [Toc]    [Back]

       The strlog routine returns the value 0 (zero). If the message
 is not seen by all the readers. Otherwise, it returns
       the value 1.



                                                       strlog(9r)
[ Back ]
 Similar pages
Name OS Title
DXmPrintWgtPrintJob Tru64 Submits files to the print service.
crontab Tru64 Submits a schedule of commands to cron
nettlgen.conf HP-UX network tracing/logging and kernel logging configuration file
nettlgen.co HP-UX network tracing/logging and kernel logging configuration file
writesrv Tru64 Lets users send messages to and receive messages from a remote system
log_get_filename FreeBSD logging system
log_new_null_channel FreeBSD logging system
log_free_context FreeBSD logging system
logging FreeBSD logging system
log_free_channel FreeBSD logging system
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service