mastodon.world is one of the many independent Mastodon servers you can use to participate in the fediverse.
Generic Mastodon server for anyone to use.

Server stats:

11K
active users

#logging

12 posts10 participants4 posts today
Continued thread

Okay, yeah, so, that method was BS for two reasons: I'm formatting the milliseconds from the log record, but the rest of the timestamp from "now" (lol, ouch) – but also, the underlying problem is using time.strftime (like the base class) instead of the more modern datetime.datetime.strftime. Because the latter actually _does_ have a format string placeholder for microseconds (not milliseconds though).

So, after a bit of iteration, I think I'll be going with this one:

Python: *has very flexible logging system*

also Python: *has no format string placeholder for fractional seconds*

me, wanting a ISO 8601 compatible timestamp with milliseconds in his logs:

[Edit: fixed and improved version in the replies]

Тонкости работы с логгированием в Python: краткий гайд для разработчиков

Логирование является одним из ключевых и важнейших элементов разработки и эксплуатации приложений. Умение правильно вести журнал логов — ключ к эффективной отладке и мониторингу приложений. Оно дает ценную информацию всей цепочке заинтересованных лиц: от разработчиков и системных администраторов до руководителей бизнеса. В статье рассмотрен де-факто стандарт логирования — модуль logging в Python. Я дам общие рекомендации по его настройке и опишу практики применения модуля, подходящие для большинства случаев.

habr.com/ru/articles/899244/

ХабрТонкости работы с логгированием в Python: краткий гайд для разработчиковЛогирование является одним из ключевых и важнейших элементов разработки и эксплуатации приложений. Оно дает ценную информацию всей цепочке заинтересованных лиц: от разработчиков и системных...

Trump administration cuts back forest protections to increase logging

Flathead National Forest

No big surprise. Whether it will actually lead to more timber production is an open question . . .

[Click here for map of areas under consideration for increased logging. (PDF, 19.7MB)]

President Donald Trump’s administration acted to roll back environmental safeguards around future logging projects on more than half of U.S. national forests under an emergency designation announced Friday that cites dangers from wildfires.

Whether the move will boost lumber supplies as Trump envisioned in an executive order last month remains to be seen. Former President Joe Biden’s administration also sought more logging in public forests to combat fires, which are worsening as the world gets hotter, yet U.S. Forest Service timber sales stayed relatively flat under his tenure.

Agriculture Secretary Brooke Rollins did not mention climate change in Friday’s directive, which called on her staff to speed up environmental reviews.

Continue reading . . .