init_log

Function init_log 

Source
pub(crate) fn init_log(verbose: bool) -> Result<FlushGuard>
Expand description

ロギングシステムを有効化する。

出力先は stdout と ファイル。 ログレベルは Error, Warn, Info, Debug, Trace の5段階である。 フィルタは Info 以上、 ただし verbose モードの場合は stdout へは Trace 以上のログが出力される。 (debug build では自動的に)

  • opts - 起動オプション。