Revision [1896]

Last edited on 2013-03-26 23:23:31 by DavidLee
Additions:
- if **XLOGFILE** is specified then it is used as the log file.
If a file is is found to log then a simple ""FileAppender"" is used for logging to that file. If the logfile cannot be written the logging is disabled.
If the environment variable XDISABLE_LOGGING is "1" or "true" the logging is disabled.
Deletions:
- if **XLOGFILE** is specified then it is used as the log file
If a file is is found to log then a simple ""FileAppender"" is used for logging to that file.


Revision [1523]

Edited on 2010-10-13 06:36:26 by DavidLee
Additions:
If the environment variable **XLOG4JPATH ** is set then it is used as the path to a log4j configuration file.
- if the java user.dir system property is set then xmlsh.log in that directory is used
Filenames should be full paths because a relative path is often not what you expect.
Deletions:
If the environment variable **XLOG4JPATH **is set then it is used as the path to a log4j configuration file.
- if the java user.dir system property is seth then xmlsh.log in that directory is used


Revision [1521]

Edited on 2010-10-12 10:21:56 by DavidLee
Additions:
See Also [[BuiltinVariables builtin variables]]
Deletions:
See Also ]]BuiltinVariables builtin variables]]


Revision [1520]

Edited on 2010-10-12 10:21:50 by DavidLee
Additions:
See Also [[CommandLog log command]]
See Also ]]BuiltinVariables builtin variables]]
Deletions:
[[CommandLog]]


Revision [1517]

Edited on 2010-10-12 10:10:44 by DavidLee
Additions:
If no XLOG4JPATH is not set or if the file cannot be parsed then the following is used to choose a file to log.
Deletions:
If no XLOG4JPATH is set or if the file cannot be parsed then the following is used to choose a file to log.


Revision [1312]

Edited on 2010-03-21 14:43:32 by DavidLee
Deletions:
- if **XMLSH**is set then $XMLSH/xmlsh.log is used as the log file


Revision [1178]

Edited on 2010-02-05 17:42:46 by DavidLee
Additions:
Logging is done for every command executed, as well as stack traces for every exception.
You can explicitly add a log record using the [[CommandLog log Command]]
----
[[CommandLog]]


Revision [1104]

Edited on 2009-12-27 08:10:49 by DavidLee
Additions:
If the environment variable **XLOG4JPATH **is set then it is used as the path to a log4j configuration file.
- if **XLOGFILE** is specified then it is used as the log file
- if **XMLSH**is set then $XMLSH/xmlsh.log is used as the log file
Deletions:
If the environment variable XLOG4JPATH is set then it is used as the path to a log4j configuration file.
- if XLOGFILE is specified then it is used as the log file
- if XMLSH is set then $XMLSH/xmlsh.log is used as the log file


Revision [1103]

Edited on 2009-12-27 08:10:11 by DavidLee
Additions:
If a file is is found to log then a simple ""FileAppender"" is used for logging to that file.
If no file is found then the ""BasicConfigurator"" is used (which logs to stderr).
Deletions:
If a file is is found to log then a simple FileAppender is used for logging to that file.
If no file is found then the BasicConfigurator is used (which logs to stderr).


Revision [1102]

Edited on 2009-12-27 08:09:56 by DavidLee
Additions:
====Configuration====
On startup, xmlsh checks to see if Log4J has previously been initialized, and if so no action is taken.
If the environment variable XLOG4JPATH is set then it is used as the path to a log4j configuration file.
If no XLOG4JPATH is set or if the file cannot be parsed then the following is used to choose a file to log.
- if XLOGFILE is specified then it is used as the log file
- if XMLSH is set then $XMLSH/xmlsh.log is used as the log file
- if the java user.home system property is set then xmlsh.log in that directory is used
- if the java user.dir system property is seth then xmlsh.log in that directory is used
If a file is is found to log then a simple FileAppender is used for logging to that file.
If no file is found then the BasicConfigurator is used (which logs to stderr).


Revision [1101]

The oldest known version of this page was created on 2009-12-27 07:55:18 by DavidLee
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki