Skip to content
This repository was archived by the owner on Jul 27, 2023. It is now read-only.

Logging (Core errors are ignored) #60

@LiHRaM

Description

@LiHRaM

Currently errors emitted by the error! macro from core is ignored in xi-win.
According to the log package, binaries using libraries which use macros from the log package need to have a logger which can receive the logs. The silent errors then make sense, as Core is used as a library by xi-win, which at the present uses no logger itself.

The fix seems to be initializing a logger early in the program.

I suggest just using something simple, like env_logger to receive the logs from core until a more complicated solution is needed.

Conveniently, we could also use this logger for tracing of commands, etc.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions