Commit Graph
37 Commits
Author SHA1 Message Date
Benau f590280431 Fix mobile STK server logging 2020-02-28 19:53:01 +08:00
Benau d63c68af78 Add thread safe log prefix assignment 2020-02-28 09:35:11 +08:00
Benau a418302d9f Add thread safe function for server time logging prefix 2020-02-25 12:17:27 +08:00
Benau 50944bb8c3 Add debug logging for iOS device 2020-01-20 14:58:03 +08:00
Benau 31caa7e056 Make all fopen utf8 path aware 2019-06-28 21:05:50 +08:00
Benau c337976413 Use unicode windows build with enabling directinput support in mingw 2019-06-26 11:32:18 +08:00
Benau 2e08fe3b15 Add current date and time to log for server 2019-01-26 14:56:08 +08:00
Benau 6536a311b3 Allow logging save only to a file 2018-02-27 13:22:58 +08:00
Deve 4cc57dd754 Fixed a crash when logging long messages 2018-02-12 21:31:32 +01:00
hiker 1f7350822c Added buffer flushing if a history replay is aborted. Don't print
data to stdout when using buffering (since it slows down flushing).
2018-02-07 08:32:22 +11:00
Deve 51e1153cc9 Fixed unsafe printf 2018-01-07 21:33:43 +01:00
Deve 6f6ac84495 Fixed android compilation 2017-12-22 21:02:37 +01:00
Benau a55e7d204a Fix wrong newline in linux terminal 2017-12-11 11:00:06 +08:00
hiker 55d0df7bad Added option to buffer log messages (which can reduce debug output
overhead).
2017-12-04 11:32:09 +11:00
hiker 3093803762 Add support for a 'prefix' to be printed for all log messages. 2017-11-30 17:49:45 +11:00
Deve c013fcea61 Allow to log messages to file on android 2016-12-06 23:31:49 +01:00
deve 5f46863a19 Display pop-up message when fatal error occured on windows.
The reason to do it is that in release mode we don't receive any message in console. This causes that the game sometimes doesn't start and you have no idea why (for example missing supertuxkart.git file etc.).
2015-12-14 12:25:04 +01:00
deve 94d5c19b7f Fixed compiler warnings.
The winsock2.h header should be always included before windows.h header (or we should define WIN32_LEAN_AND_MEAN). It's because windows.h header includes also winsock.h header and there is possible conflict between winsock and winsock2.

I didn't test in on Visual Studio yet. I hope there is no WIN32_LEAN_AND_MEAN redefinition errors...
2015-12-03 14:59:54 +01:00
hiker 8d07d26c25 Updated (c) year to include 2015. 2015-03-30 11:42:50 +11:00
hiker 93c5012f57 Fixed incorrect label 'debug' for verbose messages and vice versa. 2015-02-12 16:49:16 +11:00
Vincent Lejeune 8e3ee643d5 Fix using uninitialized memory 2014-11-17 00:11:23 +01:00
hikerstk 6ee751e3c3 Added new class to handle command line parameters, which
simplifies parameter handling in main (e.g. it's not
necessary to list and ignore parameters in the 2nd
pass, when they were handled in the first pass).
Removed some command line options for which there
is a guy (e.g. --weather), or which are not really
useful (--list-karts). 

All parameters to options must now consistently be
specified using '=', e.g.: --log=1 and --kart=tux.

Also removed support for 'classic' camera (which was
not used anymore). Removed now unneccessary #include
in user_config.hpp, which made some #include changes
in other files necessary.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14939 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2014-01-06 12:23:16 +00:00
auria f1aac9e317 Adjust logging to make STK less annoying to debug under visual studio : output the logging directly to VS's output pane, instead of having to reply on the small cmd.exe popup that closes as soon as the application exits
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14807 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-27 03:02:33 +00:00
hikerstk 8247f73604 Replaced tabs with spaces.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14448 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-11-15 12:52:39 +00:00
hikerstk c5b8732087 Probably biggest commit (in terms of number of files) ever -
updated the (c) line of all files to -2013, added missing (c), 
changed format in some cases so that it will be easier in
the future to change them by script. No actualy code change.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14447 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-11-15 11:43:21 +00:00
curaga 3125886dac High-priority log events always go to console
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@13587 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-08-28 13:51:38 +00:00
hikerstk c42804dae5 Renamed parameter va_list, since va_list is reserved (which caused
compilation errors on VS).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12818 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-05-30 23:18:01 +00:00
curaga 8c44958e5a Re-try the logging fix
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12813 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-05-30 15:05:29 +00:00
curaga 49cd57fbd9 Inline functions may complicate passing va_lists around, as they can be stack offsets.
See http://julipedia.meroh.net/2011/09/using-vacopy-to-safely-pass-ap.html


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12811 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-05-30 12:52:14 +00:00
curaga 7986aa66de Fix logging crash, using a va_list twice.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12809 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-05-30 12:35:41 +00:00
curaga b56bf4dc53 Remove trailing space, git doesn't like it
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12797 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-05-29 22:04:35 +00:00
hikerstk e362700a22 Fixed double newline added on console output.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12718 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-05-01 00:49:21 +00:00
hikerstk 09173c479a Fix linux compilation error.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12715 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-04-30 22:18:01 +00:00
hikerstk e99e944f9b Fix #942. Thanks to hilnius.
(note I modified the original patch, and had no opportunity to verify it
again on linux. If it doesn't work, blame me, not hilnius).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12713 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-04-30 07:17:02 +00:00
hikerstk c7274ac230 Made debug the lower priority, so that verbose output can
be used to display additional message for stk, but be
still able to filter out debug messages.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12386 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-01-18 03:50:31 +00:00
hikerstk c70b63ff40 Removed test code, and made apple use xterm colors.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12352 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-01-14 00:41:06 +00:00
hikerstk 5d8c0d7be1 Added log infrastructure. Only a few files of STK are actually using it,
but all (f)printfs should be replaced. Note that I had to rename
tinygettext/log.?pp to avoid linking problems on windows.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12351 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-01-14 00:38:07 +00:00