Stenzek
942316b2d0
Log: Fix inconsistent enum ordering
2025-05-06 22:40:21 +10:00
KamFretoZ
d049b36387
Log: Allow read-only access to the log file ( #3409 )
2025-04-26 13:03:39 +10:00
Stenzek
0f51472d64
Misc: Android build fix
2024-11-30 01:09:41 +10:00
Stenzek
aafc029682
Misc: Un-namespace Timer
2024-11-29 20:13:37 +10:00
Stenzek
3f41dcc97d
Log: Add option coloured variants
2024-11-11 14:04:48 +10:00
Stenzek
e3e0fe6445
Log: Prepend timestamp to multi-line messages
2024-11-10 13:23:25 +10:00
Stenzek
6551358212
Log: Replace channel string search with bitset
...
Knocks off around ~20KB of code.
2024-10-31 14:41:33 +10:00
Stenzek
3dca598063
Log: Switch to enum class
...
Need to change the channel to a bitset too.. the string lookups are
horribly slow, and conflict when one is a prefix of another.
2024-09-21 22:26:06 +10:00
Stenzek
d1770b616f
Settings: Default console logging to running from TTY
2024-09-09 20:55:15 +10:00
Stenzek
7f4e5d55db
Misc: Update copyright headers
2024-09-01 22:08:31 +10:00
Stenzek
44a12db931
Log: Flush on every write
...
Slower, but if we crash, need the whole thing.
2024-08-18 12:18:10 +10:00
Stenzek
3a83c4265c
Misc: Fix a bunch of code analysis warnings
...
Some of which were even actual errors.
2024-08-02 23:56:07 +10:00
Stenzek
4e922a34a7
Log: Simplify macros
2024-05-24 02:08:14 +10:00
Stenzek
ca3cfbaa99
Misc: Pass string_view by value
2024-05-05 22:28:29 +10:00
Stenzek
9fd2994b73
Log: Fix crash with >1 instance + file log
2024-04-14 21:18:47 +10:00
Stenzek
edae13d9e4
CDROM: Log command parameters
2023-11-05 13:32:25 +10:00
Stenzek
f05ff4103e
Misc: Build fixes for Android
2023-11-04 20:11:51 +10:00
Stenzek
fa6ef1d04e
Log: Fix system console
2023-09-30 17:08:38 +10:00
Stenzek
4ad777f54f
Qt: Add log window
2023-09-30 15:09:07 +10:00
Stenzek
92440bdfcf
Log: Add fmt overloads
2023-09-23 14:14:52 +10:00
Stenzek
ac0601f408
Common: Drop String, add SmallString
2023-09-23 14:14:52 +10:00
Stenzek
80e3d29ab8
Misc: clang-cl warning clean-up
2023-09-03 14:30:26 +10:00
Stenzek
34e4bfdfcd
Log: Don't colourize timestamps
2023-08-30 00:44:01 +10:00
Connor McLaughlin
8c7a192128
Misc: Add copyright/license statement to applicable files
...
Should've did this in the beginning.
2022-12-04 21:03:49 +10:00
Connor McLaughlin
af91fcf195
Backport more common classes
2022-07-21 17:29:58 +10:00
Evgeniy Dushistov
39a9997fd0
Fix usage of free
for stack variable
...
Based on warning from pvs static analyzer (https://habr.com/ru/company/pvs-studio/blog/586700/ )
2021-11-07 20:43:41 +03:00
Connor McLaughlin
642f8041e9
Common/Log: Fix compilation on Android
2021-07-30 17:01:07 +10:00
Connor McLaughlin
77eb8e4b72
Common/Log: Rewrite for better unicode handling
2021-07-29 13:45:38 +10:00
Connor McLaughlin
26a8f8d9e7
Common/Log: Restore old console behavior
2021-07-29 13:45:11 +10:00
Connor McLaughlin
3b7c6c7bbd
Common/Log: Fix Unix escape sequences on preexisting consoles
2021-07-23 18:07:03 +10:00
Connor McLaughlin
911e9a37f1
WIN32 macro -> _WIN32
2021-06-30 14:38:07 +10:00
Connor McLaughlin
9d7f4523b0
Log: Close C file handles on free (win32)
...
Fixes toggling console not hiding the window.
2021-01-09 01:52:48 +10:00
Connor McLaughlin
9951921a6d
Log: Enable virtual terminal processing on Win32
...
This way we don't need to set the registry value.
2021-01-09 00:39:32 +10:00
Jake Stine
f26b094cf7
Console: Use ANSI escape codes and remove entirely Win32's legacy WriteConsoleA code.
...
Also fixes android build failure (missing unistd.h)
2021-01-07 07:05:33 -08:00
Jake Stine
c9b8dc13fd
Console: Fix problems when using CLI from MSYS2/GitBash/ConEmu
...
- Fix issue where console output is lost when running from MSYS2/GitBash CLI
- Fix issue where pipe redirections would be overridden and otuput would always go to the attached console (this affected windows cmd prompt as well as other shell CLIs)
- Simplify some logic regarding registering of the standard output writer
2021-01-05 07:35:11 -08:00
Connor McLaughlin
98766a490f
Log: Change success to verbose and move down in ordering
2020-12-09 01:03:32 +10:00
Connor McLaughlin
eb7da791ea
CommonHostInterface: Fix command line help not printing on Windows
2020-07-21 20:09:54 +10:00
Connor McLaughlin
c2ab611097
Common/Log: Properly release console when disabling
2020-05-01 00:58:24 +10:00
Connor McLaughlin
4702110474
Common/Log: Add file output
2020-05-01 00:58:02 +10:00
Connor McLaughlin
b11a7a106f
Common/Log: Fix corrupted output/UB with va_copy
...
Fixes crashes on GCC9+ (#9 ), maybe others.
2020-02-01 11:04:46 +10:00
Connor McLaughlin
71c1e243fe
Remove YBaseLib dependency
2020-01-10 13:40:53 +10:00