Command Reference Guide

Chapter 1: Matrix Server Commands 16
Copyright © 1999-2006 PolyServe, Inc. All rights reserved.
mxlogger – add a log message
Synopsis
/opt/polyserve/bin/mxlogger -e <entity> -l <level> [-G|-L]
<log-text>
/opt/polyserve/bin/mxlogger [-h]
Description
You can use the mxlogger command to add your own messages to the
matrix.log file. For example, you may want to add messages about the state of
your applications.
The arguments are:
-h
Print a help message.
-e entity
The type of message that you are adding. entity can be
USER1, USER2,
USER3, USER4, USER5, USER6, USER7, or USER8
. You will need to determine
how you want to use these entities.
-l level
The severity of the message. level can be
ERROR, WARN, INFO, EVENT,
FATAL, STATE, TRACE, or DEBUG
.
-G|L
-G specifies that the message to be added is global; -L specifies that it is
local. The default is local.
log-text
The text of the message. If log-text contains special characters or spaces, it
must be enclosed in quotation marks.
The following command adds a local message to the matrix.log file:
mxlogger -l info -e User2 “hello, world.”
The message appears like this in the log file:
Server Level Date/time Facility Entity Message
192.168.0.1 [Info] [2001-10-07 14:16:27] User USER2 hello, world