-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RFC: Add new log macros to replace AZTracePrintf #47
Comments
Should we also remove the concept of |
Well to be consistent with AZ_Warning and AZ_Error would would still need the "window" parameter. Examining the Feature design description section, I do have one question about the deprecation phase of Having AZ_TracePrintf log at "trace" log level encourages authors to update their uses to use the appropriate The reason of the proposal looks good to me. |
On issue I have with the window parameter is that it prevents a useful feature of Visual Studio that if you output a log with the format |
@lumberyard-employee-dm Plan is to:
|
The plan looks good to me. I think there is one minor piece of information missing and that is in bullet 2, the |
It would only be necessary to remove the (System) one that is emitted by errors and asserts by default, not the entire concept of Window in order to enable the functionality in Visual Studio. This much is fairly straightforward. |
This RFC has been signed off by @o3de/sig-core and the change is free to go into development. |
Action Plan
|
Migrate some PerformanceCollector AZ_TracePrintf to AZ_Trace: o3de/o3de#15433 |
Summary:
Add new
AZ_Info
andAZ_Trace
log macros to enable separation of log levels for trace level logging; these macros will replace the use ofAZ_TracePrintf
, which will be deprecated.What is the relevance of this feature?
O3DE lacks separation of info level log statements from debug trace.
O3DE has the notion of the following log levels, provided by ILogger - the AZ interface for logging, Debug/Trace debug log macros and ILog legacy log reporting from CrySystem code, for reporting assert, errors, warnings, and informational messages:
For reference, looked at other common log platforms or approaches:
A lot of existing O3DE code uses the
AZ_TracePrintf
which mixes informative messages, with often fine-grained informational events that are most useful to debug an application. This RFC proposes splitting that macro up to have a clean separation for Debug/Trace users.Feature design description:
Trace
level toLogLevel
AZ_TracePrintf
as deprecated in code.AZ_Trace
macro to log atTrace
level.AZ_Info
macro that logs atInfo
level.Info
in both systems.AZ_TracePrintf
.AZ_TracePrintf
withAZ_Trace
.Technical design description:
As RFC is proposing two new AZ_Info macros, all the technical description has been added that's relevant.
Note: There is a proposal to add UX for log level control in the Editor, See https://github.com/o3de/sig-content/blob/main/rfcs/rfc-69-logging-event-viewer.md
What are the advantages of the feature?
What are the disadvantages of the feature?
GetErrorReport()
,QMessageBox::critical
,CLogFile
How will this be implemented or integrated into the O3DE environment?
AZ_TracePrintf
withAZ_Trace
usage.Are there any alternatives to this feature?
However, this RFC could be a stepping stone on those paths as it provides an immediate solution. It does not block a more extensive logger redesign.
How will users learn this feature?
Are there any open questions?
The text was updated successfully, but these errors were encountered: