Lewati ke konten utama

Console Logging

Console Logging

Active

Atur records yang sampai ke terminal dan cara Rich menampilkannya.

Command[tool.custy.logging]

Category

Logging Configuration

Quick Command

[tool.custy.logging]

log levelRich markuptracebacks

Properties​

Properties

PropertyTypeDescriptionDefaultRequired
levelDEBUG | INFO | WARNING | ERROR | CRITICALConsole threshold yang digunakan jika tidak ada explicit global log level atau debug mode yang menggantikannya.INFONo
markupBooleanIzinkan Rich markup tags dalam console messages.trueNo
rich_tracebacksBooleanTampilkan enhanced exception tracebacks menggunakan Rich.trueNo
show_timeBooleanTampilkan timestamp column dalam console records.falseNo
show_levelBooleanTampilkan log-level column. Runtime debug mode mengaktifkannya.falseNo
console_formatLogging formatPython logging format yang diterapkan sebelum Rich presentation.%(message)sNo
Generated console logging
toml
[tool.custy.logging]
level = "INFO"
markup = true
rich_tracebacks = true
show_time = false
show_level = false
console_format = "%(message)s"

Lanjutkan