Henrik Rydgård
c6061aebca
Debugger: don't persist log.channel.set changes to the saved config
...
log.channel.set is meant for temporary, session-only diagnostic
tweaks (e.g. quieting a noisy channel while investigating something
over the WebSocket debugger). It was going through the same
SetLogLevel/SetEnabled calls the UI settings use, so a normal app
exit would persist whatever channels/levels the debugger last left
set, silently overwriting the user's real saved log preferences for
future runs - discovered when a later session's default logging
looked "off" for no apparent reason.
LogManager now tracks whether the debugger has touched channel
config this run and skips SaveConfig() entirely if so, leaving
whatever's already on disk untouched.
2026-08-21 10:32:21 +02:00
Henrik Rydgård
04ef18a9d9
Send the crash dump output to the debug output stream in headless. This makes it so that crash-failed test output will contain crash details.
...
Also fix some warnings and stuff.
2026-08-11 22:36:47 +02:00
Henrik Rydgård and Claude Sonnet 5
1c0e5ae48c
LogManager: fix fp_ race between logging and SetFileLogPath/Shutdown
...
SetFileLogPath() and Shutdown() closed/reassigned fp_ without holding
logFileLock_, while LogLine() only locked around the actual fprintf,
after already reading fp_ unlocked. A concurrent SetFileLogPath() or
Shutdown() could close the FILE* mid-write from another thread. Now
all three paths hold logFileLock_ across the check-and-use of fp_.
Also fixes fp_ being left dangling (non-null but closed) if
SetFileLogPath() runs while File output is disabled.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_01L4QAoxV2KY7ek4PcZw3WvY
2026-08-09 19:03:28 +02:00
Henrik Rydgård
683704d61d
Add new log category for config
2026-07-30 10:03:15 +02:00
Henrik Rydgård
e30b90e709
Quiet and improve some logs
2026-07-27 18:37:28 +02:00
Henrik Rydgård
4bf36fc7f8
Add command line option --vsh to try to boot the VSH. Logspam reduction, improve printf logs.
2026-07-27 14:58:59 +02:00
Henrik Rydgård
ee1314f803
Add new TexCache logging channel
2026-07-18 11:57:56 +02:00
Henrik Rydgård
95ce95e489
Add a new "Net" log category, do assorted cleanup
2026-06-13 14:43:59 +02:00
Henrik Rydgård
b164621606
Add lock to RingbufferLog
2026-06-01 10:49:45 +02:00
Henrik Rydgård
91b3741a57
Implement a simple cheat database download facility
2026-05-16 22:31:13 +02:00
Henrik Rydgård
b7f257152d
Fix logging to file
...
Fixes #21411
2026-03-11 14:14:58 +01:00
刘皓
5716cbd41d
Use the libretro VFS interface in libretro builds
2026-01-01 00:24:01 -05:00
Henrik Rydgård
14ddad5ce3
Change how defaults work in the inifile reader (more flexible this way)
2025-10-31 21:57:52 +01:00
Henrik Rydgård
8e4ae1c067
LogManager: Fix bug where we accidentally opened a log file even if not enabled.
2025-09-01 00:15:04 +02:00
Henrik Rydgård
18ccef1bd4
Just some minor code modernization
2025-08-25 10:45:12 +02:00
Henrik Rydgård
1b13af6f81
In debug builds, also default new logs to ERROR
2025-06-24 21:36:04 +02:00
Henrik Rydgård
43e79aba55
Give Mpeg and Atrac their own log categories
2025-06-24 21:36:04 +02:00
Henrik Rydgård
a721a0b6dd
Minor refactor
2025-06-16 18:29:38 +02:00
Henrik Rydgård
2feaeef837
Add support for 16kb page size on Android
2025-06-10 16:16:13 +02:00
Henrik Rydgård
a4b2a6051c
Correct the position of a mutex lock in logging
2025-06-06 19:36:43 +02:00
Henrik Rydgård
2bc181104b
Sanity checks
2025-05-28 11:01:15 +02:00
Henrik Rydgård
f0b0457fea
More minor fixes
2025-05-26 19:40:31 +02:00
Henrik Rydgård
65229026bb
Add a checkbox to enable file logging from the UI, in developer settings.
...
Fixes issue #20372 .
The file is written to PSP/SYSTEM/DUMP/log.txt by default, but you can
override from the command line if needed.
2025-05-25 18:54:30 +02:00
Henrik Rydgård
2dbb54667d
IAP work
2025-05-25 11:22:04 +02:00
Henrik Rydgård
91bf4d5b5c
Correct some log categories, add UI category, some warning fixes
2025-04-09 13:45:21 +02:00
Henrik Rydgård
5b8f3807d1
Add new sceReg log category
2025-04-03 21:15:09 +02:00
Henrik Rydgård
0ecd72416b
Reduce overhead of logging further.
2025-03-25 23:09:11 +01:00
Henrik Rydgård
8e3df92aff
Avoid formatting log messages in more cases.
2025-03-25 22:42:48 +01:00
Henrik Rydgård
7a0ec74c32
Merge pull request #19855 from oltolm/cmake
...
make compile with Clang/GCC on Windows
2025-01-17 15:13:52 +01:00
oltolm
9566065455
make compile on mingw-w64
2025-01-11 01:25:27 +01:00
Henrik Rydgård
5091ea57d4
Default logging in debug builds too to INFO. DEBUG is too spammy.
2025-01-10 20:47:22 +01:00
Henrik Rydgård
c1ffebf54c
Fix some logic in LogManager, cocoa warning fix
2024-12-17 20:22:58 +01:00
Henrik Rydgård
e567a58684
Remove StdioListener
2024-12-16 12:33:58 +01:00
Henrik Rydgård
8de30235f2
More cleanup. Make the log manager work even before "initialized", removng the Early phase
2024-12-16 12:33:58 +01:00
Henrik Rydgård
96cab3f267
Rework the log manager to be more robust
2024-12-16 12:33:58 +01:00
Henrik Rydgård
bf3e1b4ee1
Add Debugger log category
2024-12-10 09:59:08 +01:00
Henrik Rydgård
5d0316db6f
Tune some log verbosity, remove timestamp on outputdebugstring logs
2024-12-03 22:11:01 +01:00
Henrik Rydgård
3ffff831c7
Refactor LogManager (remove GetInstance()). In headless, add option to log to OutputDebugString on Windows.
2024-12-03 21:39:42 +01:00
Henrik Rydgård
7f13bc1a34
Add new log category for texture replacements
2024-12-01 14:17:01 +01:00
Henrik Rydgård
d88d161822
Fix crash in logging
2024-11-30 02:44:01 +01:00
Henrik Rydgård
91c82205eb
Logging: When not on EmuThread, log with the host thread name instead of the PSP thread name.
2024-11-27 15:38:41 +01:00
Henrik Rydgård
1221a6e928
Minor code cleanups
2024-10-28 17:50:34 +01:00
Henrik Rydgård
4d6905672e
Bunch more linting
2024-10-10 11:57:10 +02:00
Herman Semenov
3c66f149d3
[Common/Core/Windows] Removed excess check pointer before delete or free()
2024-09-17 11:34:42 +02:00
Henrik Rydgård
bfd797033e
useThread_ in ConsoleListener.cpp can now be used to manually turn off the logging thread.
2024-07-21 15:37:54 +02:00
Henrik Rydgård
5939270d2c
Log: Split out StdioListener from ConsoleListener, making the second Win32-only.
2024-07-21 13:55:40 +02:00