Skip to content

Conversation

@AlanGriffiths
Copy link
Contributor

The logging APIs are stable and useful to downstream projects. Make them more easily available

@AlanGriffiths AlanGriffiths requested a review from a team as a code owner January 19, 2026 16:17
Base automatically changed from drive-by-cleanup to main January 20, 2026 13:01
Copy link
Contributor

@mattkae mattkae left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One request!

geometry/rectangles.cpp
input/mousekeys_keymap.cpp
log.cpp
logging/dumb_console_logger.cpp
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before we land this in the public API, can we change this name to something a little more informative? Perhaps StdOutConsoleLogger or something similar?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't StdOut both wrong (doesn't mention stderr) and tautologous?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW I'll also defend the Dumb: that is a comparison to a Smart logger that enabled things like filtering based on level and component. (Which something we're talking about doing now.)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe Basic or Simple is better, but I'm fine either way 👍

Copy link
Contributor

@RAOF RAOF left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems likely that we'll be changing (or perhaps deprecating parts of) this API as a part of the logging work coming up.

Should we wait until we've decide what logging API additions/deprecations we are going to make before landing something in mircore we might almost immediately deprecate?

@AlanGriffiths
Copy link
Contributor Author

It seems likely that we'll be changing (or perhaps deprecating parts of) this API as a part of the logging work coming up.

Should we wait until we've decide what logging API additions/deprecations we are going to make before landing something in mircore we might almost immediately deprecate?

I have been wondering the same thing. But, from what I've seen of the logging API discussion, we can implement this API in terms of the proposed solution (which is an easy migration path). The main change that seems likely is std::print() style logging in place of the printf() style we have here. I don't see carrying both as a significant overhead.

@github-actions
Copy link

TICS Quality Gate

✔️ Passed

No changed files applicable for TICS analysis quality gating.

TICS / TICS / Run TICS analysis

Copy link
Contributor

@mattkae mattkae left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing blocking on my end, just a nit on the existing name

@AlanGriffiths AlanGriffiths added this pull request to the merge queue Jan 23, 2026
Merged via the queue into main with commit c655cb7 Jan 23, 2026
54 of 58 checks passed
@AlanGriffiths AlanGriffiths deleted the move-useful-stuff-to-core branch January 23, 2026 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants