Print for a logging module of another file

is there some way I can do something like the following?

Main.c:

LOG_MODULE_REGISTER(app);

test.c:

LOG_INF(app, “hello world”);

Related