Improve trace logging -
authorNeale Ferguson <neale@sinenomine.net>
Tue, 8 Mar 2016 19:54:11 +0000 (14:54 -0500)
committerNeale Ferguson <neale@sinenomine.net>
Tue, 8 Mar 2016 19:54:11 +0000 (14:54 -0500)
commit76fe267817a0a779553321f3859a706812e56fd3
tree11bded2b796a401218702d2acbc46ddd4a76799e
parent051f49639d915710cc8495bdaeb93f5da592b549
Improve trace logging -
- Add logfile and syslog capability. For Windows, the latter is simulated by writing to a file. Adding Eventlog support is for a future effort. The choice of logging mode is made via MONO_LOG_DEST environment variable.
- Add timestamps and pid to the trace messages to make them more useful
- Add timestamps to SGEN_LOG
- Related to tracing: when tracing and using something like Valgrind the system may be slowed so much that the sleep abort limit may be exceeded for threads. This fix adds an environment variable lookup of "MONO_SLEEP_ABORT_LIMIT" which is a value greater than 40, which defines the number of milliseconds to wait for threads to complete pending operations. If not set, the valus is 200.
man/mono.1
mono/sgen/sgen-gc.h
mono/utils/Makefile.am
mono/utils/mono-log-common.c [new file with mode: 0644]
mono/utils/mono-log-posix.c [new file with mode: 0644]
mono/utils/mono-log-windows.c [new file with mode: 0644]
mono/utils/mono-logger.c
mono/utils/mono-logger.h
mono/utils/mono-threads.c