luz.paz
011e5aedfa
src/Base: [skip ci] fix header uniformity
...
This PR fixes header uniformity across all `src/Base` files
2019-12-25 11:38:58 +01:00
wmayer
77bc9cd8d5
restore old behaviour of Python wrapper of Console class to increase flexibility when using in worker threads
2019-10-20 13:51:53 +02:00
wmayer
4a6b80dbb6
in RedirectStdOutput/RedirectStdError/RedirectStdLog only flush when last character is newline to avoid garbled output in log file
2019-10-20 13:42:51 +02:00
wmayer
5ba9bc6a16
minor optimization in ConsoleObserverFile, if prefix is unknown then still write passed message
2019-10-20 12:52:08 +02:00
ezzieyguywuf
9fcc18b08e
Refactor and rename ConsoleObserver...
...
...Renamed to "ILogger", to designate that this is an Interface for a
Logger. This "Interface" is pure virtual, so that it cannot be
instantiated directly. This makes it clear that it is intended to be
derived.
Finally, got rid of all the individual log-style methods and replaced
with SendLog. The idea here is that day-to-day users will only interact
with ILogger through ConsoleSingleton (or, likely, LoggerSingleton in
the future). This singleton will manage an arbirtary collection of
ILogger, and call SendLog with the appropriate parameters based on what
the user requests.
Therefore, the singleton itself will have the individual Log, Message,
Error, etc... methods, while stil allowing us to simplify the code base
of ILogger and its derived classes.
2019-10-20 11:46:15 +02:00
Zheng, Lei
14fedb0965
Base: fix verbose checking in Console::Log()
2019-09-10 14:17:06 +02:00
Zheng, Lei
bfa68f2676
Console: improve console logging facility
2019-08-17 14:52:08 +02:00
Abdullah Tahiri
2eb5c70147
Base::Console avoid magic numbers and enable external string size checks
2019-04-24 17:56:37 +02:00
wmayer
b2a5f47e44
PVS: V560 A part of conditional expression is always true
2019-02-17 13:56:48 +01:00
wmayer
ddfa3c8843
remove kwd argument for functions only with flag METH_VARARGS
2018-08-08 17:39:32 +02:00
wmayer
1f2302141d
+ implement direct and queued mode in console class
2018-07-25 17:25:32 +02:00
wmayer
13b0bdb6a6
fix build failure on FreeBSD, support colored output to terminal
2017-06-18 12:26:05 +02:00
Yorik van Havre
ccebc7d16b
py3: Base: files A-I ported to python3
...
issue 0000995
2017-05-17 16:39:28 +02:00
Zheng, Lei
f14ef7058d
Console: added tag based log support
2017-05-13 17:46:38 +02:00
Ian Rees
8c40bb0ca2
Send console Log/Warning/Error to stderr vs stdout
2017-04-08 14:29:02 +02:00
Ian Rees
c30ce1a62d
Linux/MacOS - only write colour codes to TTYs
...
This prevents the colour codes from showing up in piped output, file
redirects, etc.
2017-04-08 14:29:02 +02:00
Ian Rees
a8eb80ea49
Use colour output from main executable on MacOS
2017-04-08 14:29:02 +02:00
Kunda
de2392eb18
source typo fixes pt5
...
+ cleaning up some more non-short-URLs
Issue #2914
2017-03-04 13:07:13 -03:00
wmayer
de41dc46ec
+ Prefer prefix ++/-- operators for non-primitive types
2015-10-07 13:38:17 +02:00
Mateusz Skowroński
05f95c0506
Fix files encoding. Go from ISO8859-1 to UTF-8.
2015-09-21 19:50:49 -03:00
wmayer
896b566dd9
+ test command to show race conditions in Console class
...
+ fix race conditions in Console class
2015-08-13 18:57:52 +02:00
Sebastian Hoogen
d49528b27e
issue #1700 replace PyExc_Exception
2014-09-17 11:15:57 +02:00
Sebastian Hoogen
2583e50ea0
flush stdout after reseting the console color
2014-08-18 13:11:16 +02:00
wmayer
be9a76c797
Add method to check if console mode is on/off
2013-07-23 13:27:02 +02:00
wmayer
120ca87015
+ unify DLL export defines to namespace names
...
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5000 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-10-10 13:44:52 +00:00