Mat Sutcliffe
074ab70380
Prevent Qt handling Windows Messages while the fatal error message is open
2021-07-13 20:40:48 +01:00
Mat Sutcliffe
d4991e9d72
Reorder log handler thread check to happen before the Win32 messagebox
2021-07-13 17:56:33 +01:00
Mat Sutcliffe
1b36c95b7b
Issue #77 Remove unused includes
2020-12-19 18:50:38 +00:00
Mat Sutcliffe
5f18d87e0b
Issue #77 Break dependency of loghandler and tokenbucket on time and units
2020-08-29 14:16:20 +01:00
Mat Sutcliffe
9e0ebef5a1
Issue #77 Move singleShot from worker.h to threadutils.h
2020-08-29 14:16:18 +01:00
Mat Sutcliffe
b80114213d
Issue #77 Move mixin classes to separate files
...
By separating them from unrelated code, their dependents
can use them without depending on unrelated code, which
in turn helps to reduce cyclic dependencies.
2020-08-29 14:16:17 +01:00
Mat Sutcliffe
2dc86652c2
Issue #77 Include style
2020-08-28 00:45:26 +01:00
Klaus Basan
54646c8edb
[LOG] Ignore some Qt warnings in released swift version
...
* those warnings confuse the user
* not ignored in DEV versions
* see https://discordapp.com/channels/539048679160676382/539925070550794240/704375325336928338
2020-06-12 18:42:54 +01:00
Roland Rossgotterer
108f773e8a
Fix BLACK_USE_CRASHPAD not being defined in required places
2019-09-16 22:41:33 +01:00
Mat Sutcliffe
1089adf18d
Cause fatal errors to trigger a crashpad crash on Windows release builds.
...
This is needed because Qt changed from `std::abort` to `__fastfail`,
which can't be caught by crashpad.
2019-04-11 22:12:03 +01:00
Mat Sutcliffe
e9a4c49d68
Ref T547 Update license masthead in all source code files.
2019-02-22 20:36:43 +00:00
Mat Sutcliffe
1493106970
Style: removed outdated comments and includes.
2019-02-22 20:35:15 +00:00
Mat Sutcliffe
bd9948bbff
Ref T486 Using QMetaObject::invokeMethod with pointer-to-member-function (or functor).
2019-02-22 20:34:53 +00:00
Mat Sutcliffe
c71d358648
Fixed clazy warnings: unnecessary containers and containers being detached.
2019-02-22 20:23:37 +00:00
Klaus Basan
c781da60d2
Ref T346, fixed typo
2018-11-04 17:42:41 +01:00
Klaus Basan
bfd907e6e3
Downgrade severity of messages generated by Qt implementation qErrnoWarning.
2018-09-20 00:47:13 +02:00
Roland Winklmeier
4cf3bc580f
Use case sensitive name of Windows header files
2018-08-25 22:12:06 +02:00
Klaus Basan
b671c2a0a5
Style, removed redundant CForm overrides
2018-08-07 20:41:06 +02:00
Mathew Sutcliffe
23becf9619
Ref T184 Use CTokenBucket to throttle identical log messages.
2017-11-12 13:48:04 +00:00
Mathew Sutcliffe
2509fb9d2e
Fatal message should generate a messagebox on Windows.
...
Qt already does this in debug builds, so this just makes release builds consistent.
2017-05-15 22:31:39 +01:00
Mathew Sutcliffe
91341890ec
Use a blocking queued connection to CLogHandler::logLocalMessage
...
when logging a fatal message from a worker thread.
Hopefully this will allow assert messages to be recorded in the logs.
2017-05-11 17:39:42 +01:00
Mathew Sutcliffe
fce1513dae
refs #937 Resolved clazy warnings: unnecessary detaching of containers.
2017-04-19 19:31:38 +01:00
Mathew Sutcliffe
b62d1c303c
refs #783 Remove the flawed 4-arg version of BlackMisc::singleShot and change signature of 3-arg version.
2016-12-06 09:34:07 +01:00
Roland Winklmeier
3d7a39ed00
Fix BlackMisc header includes
...
* Include only what is used
* Use forward declaration when possible
* Sorted includes
refs #630
2016-05-13 17:05:49 +02:00
Roland Winklmeier
1ea2f34f75
Fix doxygen documentation in src, samples and tests
...
refs #594
2016-02-16 20:01:33 +01:00
Mathew Sutcliffe
3aa3a2a892
refs #467 Mechanism for processes to notify each other of which log patterns they are subscribed to.
2015-11-19 21:02:02 +00:00
Mathew Sutcliffe
6d5e3b5897
refs #467 Refactored CLogPatternHandler garbage collection by hooking into QObject::disconnectNotify.
2015-11-19 21:01:59 +00:00
Klaus Basan
9d0408138a
refs #446 , changed log handler as discussed in slack
2015-11-19 20:57:12 +00:00
Roland Winklmeier
1b26311983
Fix license header spelling
2015-04-16 00:59:56 +02:00
Klaus Basan
f62f85b263
refs #359 , fixed loghandler, removed / fine tuning of some output / log messages
...
see also discussion in #359
2014-12-28 22:20:01 +01:00
Mathew Sutcliffe
cbbf9c256a
refs #348 Added thread safety guarantees in CLogSubscriber.
2014-11-30 00:57:43 +01:00
Klaus Basan
216b9f170d
refs #335 disable context logging to console in swiftgui_std
2014-11-30 00:52:53 +01:00
Roland Winklmeier
192b407e75
Use QPointer::data() as argument for QObject::connect()
...
Using QPointer breaks on some gcc versions
2014-10-27 17:32:31 +01:00
Mathew Sutcliffe
7a133bde11
refs #338 Added class CLogSubscriber, a helper for subscribing to log messages matching a certain pattern, with the ability to change the pattern at runtime.
2014-10-26 16:18:55 +00:00
Mathew Sutcliffe
7f783fac8f
refs #338 CLogHandler: cleaned up the logic for selectively enabling console output, with the help of the partial ordering feature of CLogPattern::isProperSubsetOf.
2014-10-22 03:05:28 +01:00
Mathew Sutcliffe
4f9d522f7b
refs #338 CLogHandler filtering messages using CLogPattern instead of the old prefix-based approach.
2014-10-22 03:05:18 +01:00
Mathew Sutcliffe
b12562ec5f
refs #338 Fixed reentrancy of CLogHandler garbage collection.
2014-10-22 03:00:48 +01:00
Mathew Sutcliffe
c30bf9f61e
refs #336 Fixed CLogHandler thread safety in swiftcore.
2014-10-16 17:06:46 +01:00
Mathew Sutcliffe
067344df24
refs #336 Added class CLogCategory to represent a log category. The category logic of CLogMessage is moved into this new class.
2014-10-16 17:05:28 +01:00
Mathew Sutcliffe
09685e8b37
refs #336 Delete CLogCategoryHandler when it is no longer used, and thread safety.
2014-10-15 01:46:35 +01:00
Mathew Sutcliffe
4549e84e05
refs #336 Renaming.
2014-10-15 01:46:35 +01:00
Mathew Sutcliffe
e3446d78d8
refs #336 Style and const-correctness.
2014-10-15 01:46:34 +01:00
Mathew Sutcliffe
ed723c5e97
refs #316 Added CLogHandler which allows to subscribe to log messages.
2014-10-04 22:16:37 +01:00