status.i4.v = log_write(file_id.i1a.r, type.i4.v, priority.i4.v,
				message.i1a.r [,author.i1a.r] [,color.i4.v])

	This routine writes a message to a shared circular log file.

	file_id		log file name (LOG_NAMLEN characters)
			(If "file_id" equals "LOCL_LOG", the message will
			 be written to the local console log.)
	type		type of entry
			(LOG_INF -> informative,
			 LOG_ERROR -> error message)
	priority	priority of entry
	message		message text (maximum of LOG_MESSLEN characters)
	[author]	author string (LOG_AUTLEN characters)
			(default (NULL) is the process name (PAxxxx))
	[color]		color to dislay entry in log_read
			(default is CYAN for LOG_INF entries and RED for
			 LOG_ERROR entries) (constants are in cnsparam)

	This function returns ACNET status values as follows:

	OK			success
	CBS_INVTYP		invalid entry type
	CBS_CORRUPT		bad header information
	CBS_GENERR		update of local log failed
	CBS_NO_SUCH		shared log does not exist
	SQL_xxx			error accessing log file

	This function requires the following include files:

	cnsparam_h, cbslib_h, acnet_errors_h

	Related functions:

	log_write_multiline_c, shared_log_printf_c,
	shared_log_printf_multiline_c, log_read, log_read_setup_c

	C/C++ usage:

	static const char	file_id[LOG_NAMLEN+1] = "SEQRLOGS";
	static const char	message[] = "Error message to log";
	static const char	author[LOG_AUTLEN+1] = "Seqncr";
	int	status;
	int	type = LOG_ERROR;
	int	priority = 0;
	int	color = RED;

	status = log_write(file_id,type,priority,message,author,color);