-
Notifications
You must be signed in to change notification settings - Fork 36
Closed
Labels
Description
Currently, the console looks like this:
[Source.Python] Initializing _studio._cache module
[Source.Python] Initializing _weapons._constants module
[Source.Python] Initializing _weapons._scripts module
[Source.Python] Loading main module...
Setting up hooks...
Setting up translations...
Setting up global pointers...
Retrieving global pointer for GlobalEntityList...
Searching for a cached signature...
Could not find a cached signature.
Searching in the binary...
Found a signature in the binary!
The first four messages are prefixed with [Source.Python]
and sent by the core. All other messages are sent by the Python side. It would look much better if all messages are prefixed with [Source.Python]
.
[Source.Python] Initializing _studio._cache module
[Source.Python] Initializing _weapons._constants module
[Source.Python] Initializing _weapons._scripts module
[Source.Python] Loading main module...
[Source.Python] Setting up hooks...
[Source.Python] Setting up translations...
[Source.Python] Setting up global pointers...
[Source.Python] Retrieving global pointer for GlobalEntityList...
[Source.Python] Searching for a cached signature...
[Source.Python] Could not find a cached signature.
[Source.Python] Searching in the binary...
[Source.Python] Found a signature in the binary!
Just hardcoding it to the loggers module doesn't seem to be the right approach, as the module is also supposed to be used by plugins. Ideally, you can optionally define a prefix when initializing the LogManager.
The prefix should only be printed to the main log and console.