Commit graph

34 commits

Author SHA1 Message Date
turleypol
d848deae18
POLLOG* macros use the new formatting (#598)
* POLLOG* macros use the new formatting
removed all old logging functions

* removed old fmt lib from everything except StreamWriter
removed unneeded functions

* fixed review comments
2024-01-16 17:55:42 +01:00
turleypol
154a68a9fd
LEAKLOG, DEBUGLOG, SCRIPTLOG, FLEXLOG changed to new logging (#597)
* LEAKLOG, DEBUGLOG, SCRIPTLOG changed to new logging

* updated FLEXLOG
2024-01-13 17:08:33 +01:00
turleypol
43b776b94d
New format lib version (#592)
* renamed include guard to be able to use both format lib versions in
parallel

* build Fmt lib and link it into clib

* use std::string instead of format Writer for logging
added variant "2" for logging with new fmt lib

* use new logging variant for two logs

* always add \n to flush log, lets see if the assumption holds

* use new lib for tostring

* replaced all INFO_PRINTS in clib

* formatter for Token, BObject and BObjectImp

* started with bsccript

* use function instead of actual object for logging

* remaining bscript, started plib

* logvariant without newline added, more template magic

* format support for base types, added test for format padding
new version for fdump

* chanhed ecompile/runecl fixed compilation with ESCRIPT_PROFILE

* rewrite INFO_PRINT in plib,poltool/uoconvert/uotool

* replaced remaining INFO_PRINTS, renamed macros INFO_PRINT for logging
without newline, INFO_PRINTLN for newline addition.
Replaced also INFO_PRINT_TRACE and renamed it to INFO_PRINTLN_TRACE

* gitignore for fmt lib

* cleanup vim leftovers
2024-01-10 18:29:10 +01:00
turleypol
5ecbbf63f4 removed dependency to boost::noncopyable 2019-02-10 14:00:55 +01:00
turleypol
ea0c533364 fixed leak in compiler and xml filemod
ecompile/runecl no longer try to log to pol logs
activated xml unittest
print stderr on testfailure
2018-12-23 13:55:47 +01:00
turleypol
ea9f5afd45 moved default deconstructors into header to let them count as trivial. 2018-11-03 15:00:44 +01:00
turleypol
0aea78c405 added array.sorted_insert to insert into an already sorted array.
Added a few finals and defaults
2018-10-07 21:05:02 +02:00
turleypol
eafbe6ec68 if started in visual studio with debugging show cout/cerr messages also in the visual studio console 2018-04-28 10:57:04 +02:00
turleypol
dbb25bdb62
Include and buildsystem cleanup (#45)
Include cleanup
Reworked buildsystem (Linux only)
Removed dynamic libs, Linux now again uses static linking (like windows)
2018-01-29 21:55:48 +01:00
turleypol
c9051fc25a missing functional header 2018-01-02 08:48:49 +01:00
turleypol
798eda5b63 Cleanup of header includes. 2018-01-01 21:52:14 +01:00
turley
dfccaa0ae8 avoid some copies 2016-12-15 16:59:58 +01:00
turley
189cad3479 Formating everything
Authors are not forced to use the clang-format setting, but should
atleast be inspired by the style.
The only thing which is now not allowed are tabs for ident/alignment!
2016-02-19 19:26:35 +01:00
frozenblit
ab592b0bf6 Instead of .c_str(), the log will take a copy of the formatter string 2015-05-16 16:00:26 +02:00
turley
c394d86de1 simplified logging message transfer 2015-04-13 19:44:43 +02:00
Thomas Volkert
c609d01e12 updated references to LogSink::addMessage() 2015-04-07 20:51:11 +02:00
Thomas Volkert
717227547e updated coding style for LogSink 2015-04-07 20:41:49 +02:00
turley
b77a13073c corrected several data races 2015-03-14 11:45:14 +01:00
Thomas Volkert
778306a3fc Merge branch 'master' of https://github.com/polserver/polserver.git 2015-01-31 15:41:10 +01:00
Thomas Volkert
4a1546569e - fixed: some improvements for function naming 2015-01-31 15:40:58 +01:00
turley
2737393f2a Tried to put all global vars into centralized structures.
Currently plib/systemstate, pol/uvars, pol/ucfg, pol/multi/multidef

Next step should be to split them based on usage, since its currently a bit of include hell...
2014-12-30 14:14:41 +01:00
Thomas Volkert
2fd482be36 - added: separate LogSink class and file 2014-11-02 23:58:35 +01:00
frozenblit
7a638a8ca2 More cleanups, yay! 2014-11-01 11:27:02 +01:00
turley
e0b722a93b fixed several uninitialized variables 2014-08-30 12:25:08 +02:00
turley
5d284a6d65 fixed month number in logfiles 2014-06-14 07:11:12 +00:00
turley
c8d89959a0 simplified flexlogger a bit, returns filename to identify the logfile, optional logfileopend timestamp 2014-06-13 18:32:26 +00:00
turley
fb873de803 decoupled headers to optimize a bit the build time 2014-05-03 09:06:19 +00:00
turley
4224dd7200 fixed thread register under linux, added full backtrace on segfault/sigusr2 2014-04-12 10:55:28 +00:00
turley
c42241df61 some minor logging stuff 2014-03-08 07:32:36 +00:00
turley
2d92ff4c08 gcc 4.7 does not like emplace_back on maps... 2014-01-27 19:10:47 +00:00
turley
dc2f993d09 wait for loggingfacility on server crash
made the sql module at least a bit more scriptfriendly: its now save to pass sql objects as parameters, result objects get automatically freed. Thus also removed the mysql_free_result function.
mysql_close is also now senseless, but kept for the guys who want to close the connection direct.
All I could do in half an hour sorry..
Never ever pass a C API directly into a scripting language!
And now the complete class: "Never ever ..."
2014-01-20 19:14:20 +00:00
turley
31ee263a45 activated new logging facility 2014-01-18 13:29:38 +00:00
turley
2b309aefbf added flexible file sink, logfile name can be specified and the returned unique id can be used to fill/close the logfile. 2014-01-05 16:14:56 +00:00
turley
8a1dfc402f wrote a logging framework which can threadsafe and faster log into multiple sinks, currently unused. Next step would be replace the current logging stuff with the new system.
optimized the ForEach* template functions a bit
2014-01-04 11:25:24 +00:00