Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logger::Formatterの初期設定の内容が解説されていない #2732

Open
magnolia-k opened this issue Sep 10, 2022 · 0 comments
Open

Comments

@magnolia-k
Copy link

https://docs.ruby-lang.org/ja/latest/class/Logger=3a=3aFormatter.html

Logger::Formatterの初期設定では、プロセスIDを表示するようになっていますが、ドキュメント上どこにも触れられていません。

    def call(severity, time, progname, msg)
      Format % [severity[0, 1], format_datetime(time), Process.pid, severity, progname,
        msg2str(msg)]
    end

ドキュメント上に、設定される内容を記載した方が理解しやすいと思われます。

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

No branches or pull requests

1 participant