87 Commits

Author SHA1 Message Date
Trevius
fc5266e115 Added Logs::Mercenaries to the new Logging System. Logging of Mercenary information is off by default with the required SQL. 2015-01-25 12:31:07 -06:00
Akkadius
5266d7b25c Add extra checking at the root of Log.Out to check if the category is subscribed to any of the output methods before trying to parse message strings and then pass them to the sub output functions and THEN perform log_setting checks and debug_level checks.
I performed a unit test of 1,000,000 log writes, there is hardly any difference.

#::: Before Checks
[01-25-2015 :: 03:15:35] [999999] Test #2... Took 17.940001 seconds

#::: With Checks
[01-25-2015 :: 04:10:55] [999999] Test #2... Took 18.018000 seconds
2015-01-25 04:24:05 -06:00
Michael Cook (mackal)
06ff4823d3 Minor tweaking to new logsys 2015-01-23 15:48:20 -05:00
Akkadius
570bd1bd00 Change .txt file write extension to .log more appropriately 2015-01-22 02:40:35 -06:00
Akkadius
7d70afd4c9 Change crash location to logs/crashes/<> 2015-01-22 02:36:55 -06:00
Akkadius
90653a9d17 Comment up EQEmuLogSys class header. Change some string copys to rather pass by reference because its not necessary 2015-01-22 01:44:52 -06:00
Akkadius
d8926861b6 My GCC built fine, but lets make Travis happy 2015-01-22 00:46:45 -06:00
Akkadius
376bba5156 Some log changes 2015-01-21 19:37:54 -06:00
Akkadius
7ce5acf701 Cleanup CloseFileLogs() 2015-01-21 18:43:47 -06:00
Akkadius
bd757417d5 Platform changes for getpid() 2015-01-20 19:05:11 -06:00
Akkadius
f7ca12f7cc Changed defaults to use enum 2015-01-20 18:47:20 -06:00
Akkadius
8ae2d86962 rename process_file_name to platform_file_name for consistency 2015-01-20 06:49:31 -06:00
Akkadius
f4847607fd More work on process logging 2015-01-20 06:26:12 -06:00
Akkadius
9ae28d7619 More process based logging work 2015-01-20 06:13:12 -06:00
Akkadius
01940ee5ed Implement crash logging, 'crash_processname_pid.log' at the root of logs/ 2015-01-20 05:52:50 -06:00
Akkadius
ad5d1e4814 Some EQEmuLogSys changes regarding class variables 2015-01-20 05:36:15 -06:00
Akkadius
e4797d04f0 Change some defaults for logs 2015-01-20 05:18:21 -06:00
Akkadius
0110755c47 Adjust defaults for LoadLogSettingsDefault 2015-01-20 04:56:13 -06:00
Akkadius
1bbbb28218 Refactor some of the database stuff for QueryServ for uniformity, should probably be done right later 2015-01-20 04:30:27 -06:00
Akkadius
42dffec4ae Various logging adjustments 2015-01-20 03:20:40 -06:00
Akkadius
b2ffcf1cf6 Implement debug_level checking for ProcessGMSay 2015-01-20 03:02:41 -06:00
Akkadius
aeff650649 Implement debug_level checking for ProcessLogWrite 2015-01-20 03:02:15 -06:00
Akkadius
f09e1d037f Implement debug_level checking for ProcessConsoleMessage 2015-01-20 03:01:41 -06:00
Akkadius
f5b1f678a1 Pass debug_level to subprocess commands 2015-01-20 03:00:00 -06:00
Akkadius
cc1735bc39 Add uint16 debug_level to ProcessGMSay 2015-01-20 02:59:32 -06:00
Akkadius
9faa2117d5 Add uint16 debug_level to ProcessLogWrite 2015-01-20 02:59:06 -06:00
Akkadius
e48234b2af Add uint16 debug_level to ProcessConsoleMessage 2015-01-20 02:58:33 -06:00
Akkadius
ff5e82c50f Fix some indents 2015-01-20 02:57:31 -06:00
Akkadius
39626159a5 Implement Linux ANSI colors 2015-01-20 02:53:10 -06:00
Akkadius
32437a21eb Add ANSI color defines for Linux 2015-01-20 02:45:38 -06:00
Akkadius
951f98a63e Re-Implement GMSay colors: http://i.imgur.com/tQbuKUM.jpg 2015-01-20 00:53:52 -06:00
Akkadius
1ad210ff29 Add MySQL Query logging at root 2015-01-20 00:14:18 -06:00
Akkadius
9546023101 Add console color for MySQL Error logging 2015-01-19 05:58:59 -06:00
Akkadius
ab4595f56d Remove QueryPerformanceCounter code 2015-01-19 03:22:23 -06:00
Akkadius
b546848313 Implement EQEmuLogSys::GetConsoleColorFromCategory in ProcessConsoleMessage 2015-01-19 02:54:01 -06:00
Akkadius
2f74f07be7 Add EQEmuLogSys::GetConsoleColorFromCategory(uint16 log_category) to replace the static map 2015-01-19 02:47:51 -06:00
Akkadius
e554278811 Remove Log.Raw function 2015-01-19 02:32:24 -06:00
Akkadius
ee1c55a813 Remove Log.Hex remaining entries 2015-01-19 02:32:09 -06:00
Akkadius
83906af9b6 Buildable state with converting hex packet dumps 2015-01-18 03:53:35 -06:00
Akkadius
b3bedef7af Bunch of crazy changes to remove logsys 2015-01-18 03:23:36 -06:00
Akkadius
467b359d0c Moved all EQEmuLogSys:: enum references used in Log.Out to a namespace 'Logs' for shortening of syntax 2015-01-18 02:20:16 -06:00
Akkadius
c025765283 Renamed DoLog to Out as the aggregate logging function for simplicity of use and shortened syntax of Log.Out 2015-01-18 02:00:15 -06:00
Akkadius
1c048cb1d1 Renamed DebugCategory to DoLog as the aggregate logging function for simplicity of use and shortened syntax of Log.DoLog 2015-01-18 01:54:09 -06:00
Akkadius
40d12d952e Refactor ProcessConsoleMessage to no longer use type 2015-01-18 01:45:58 -06:00
Akkadius
564bff07fe Refactor ProcessLogWrite to no longer use type 2015-01-18 01:42:23 -06:00
Akkadius
0926a5ded3 Refactor ProcessGMSay to no longer use type 2015-01-18 01:41:11 -06:00
Akkadius
57ac6c0e98 Remove EQEmuLogSys::Log from consolidation of types into categories 2015-01-18 01:39:01 -06:00
Akkadius
ef04c90d8e Remove new log prefix from console output 2015-01-18 01:04:59 -06:00
Akkadius
1496f14843 Remove old function code from consolidation 2015-01-18 00:56:26 -06:00
Akkadius
726b3a33f5 Consolidate EQEmuLogsys::Debug stragglers to DebugCategory for further refactoring 2015-01-18 00:06:01 -06:00