X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=doc%2Fyaz-log-man.xml;h=abf9ccf69e4f8a9769501db624fbc607fe24b2c6;hp=661c4bf762ccf44819b127a898f3153484888faa;hb=053367cbe356fb3ce0def34b065dae589d700daf;hpb=8b7e5ea3521972629d28b40db92c30ce91ffd314 diff --git a/doc/yaz-log-man.xml b/doc/yaz-log-man.xml index 661c4bf..abf9ccf 100644 --- a/doc/yaz-log-man.xml +++ b/doc/yaz-log-man.xml @@ -1,30 +1,31 @@ - %local; %entities; - - %common; + + %idcommon; ]> - YAZ &version; + Index Data - + yaz-log 7 + Conventions and miscellaneous - + yaz-log Log handling in all yaz-based programs - + yaz-XXXX @@ -32,7 +33,7 @@ - + DESCRIPTION All YAZ-based programs use a common log subsystem, and should support @@ -42,9 +43,9 @@ - + OPTIONS - + -l logfile @@ -54,7 +55,7 @@ stderr is used. The log is appended to this file. If the file grows overly large, it is silently rotated: It is renamed to logfile.1, - logfile.2, .., 9 + logfile.2, .., 9 (old such file is deleted), and a new file is opened. The limit defaults to 1GB, but can be set by the program. @@ -87,7 +88,7 @@ LOG LEVELS TO CONTROL LOGGING - Some of the log levels control the way the log is written. + Some of the log levels control the way the log is written. flush causes the log to be flushed after every write. @@ -101,8 +102,8 @@ intended for automatic test scripts, which should produce predictable log files that are easy to compare. - - + + GENERAL LOG LEVELS IN YAZ ITSELF @@ -122,7 +123,7 @@ levels (see below). - all turns on almost all hard-coded log levels. + all turns on almost all hard-coded log levels. loglevel logs information about the log levels used by @@ -134,28 +135,28 @@ is to grep for yaz_log_module_level in the source code, as in - find . -name '*.[ch]' -print | - xargs grep yaz_log_module_level | + find . -name '*.[ch]' -print | + xargs grep yaz_log_module_level | grep '"' | - cut -d'"' -f2 | - sort -u + cut -d'"' -f2 | + sort -u - eventl, malloc, + eventl, malloc, nmem, odr are used internally for debugging yaz. - + LOG LEVELS FOR CLIENTS zoom logs the calls to the zoom API, which may be useful in debugging client applications. - + LOG LEVELS FOR SERVERS @@ -230,9 +231,9 @@ 14:45:41-23/11 yaz-ztest [requestdetail] Request to pack 1+1 1 14:45:41-23/11 yaz-ztest [requestdetail] pms=1048576, mrs=1048576 14:45:41-23/11 yaz-ztest [request] Present: [1] 1+1 OK 1 records returned - + - + LOG FILENAME EXAMPLES @@ -242,11 +243,11 @@ is depending on day, rotaion will occur on midnight. - A weekly log could be specified as + A weekly log could be specified as -l my_%Y%U.log. - + FILES prefix/include/yaz/log.h