amethyst / amethyst/editor-core

Pass logs through to Amethyst logger

オープン
#45 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
blocked enhancement help wanted
主要言語
Rust
スター
45
フォーク
8
PR マージ指標
30日以内にマージされた PR はありません

説明

Currently `EditorLogger` only passes log output to the editor, but doesn't log anything to the local console. It would be good to also be able to pass log output through the regular Amethyst logger in order to be able to still see log output when the editor isn't running. This is especially important currently since no editor front end handles displaying log output well.

Amethyst exposes the [`Logger`](https://www.amethyst.rs/doc/latest/doc/amethyst/struct.Logger.html) type as the concrete logger implementation, as well as the [`LoggerConfig`](https://www.amethyst.rs/doc/latest/doc/amethyst/struct.LoggerConfig.html) for configuring the logger. `EditorLogger` should be updated to take a `LoggerConfig` as an optional parameter, and should forward any log output to an internal Amethyst `Logger` if configured to do so. This can likely take the form of an additional method `EditorLogger::forward_logs(config: LoggerConfig)`.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。