med-mastodon.com is one of the many independent Mastodon servers you can use to participate in the fediverse.
Medical community on Mastodon

Administered by:

Server stats:

310
active users

#logging

2 posts2 participants0 posts today

Is there a good handler for the `logging.handlers` stuff that sends messages via ? I tend to write CLI tools with a boilerplate I hacked out ages ago, that has some argparse defaults and then does this (somewhat compressed for brevity):

```python
if __name__ == "__main__":
import sys, logging, logging.handlers

args = parse_args()
mylogger = logging.getLogger(sys.argv[0])

if args.syslog or not sys.stdout.isatty():
handler = logging.handlers.SysLogHandler(address="/dev/log", facility=logging.handlers.SysLogHandler.LOG_DAEMON)
handler.setFormatter(logging.Formatter("%(name)s: %(levelname)s %(message)s"))
mylogger.addHandler(handler)
mylogger.setLevel(logging.WARNING - (args.verbose * 10))
else: # use the basic config when on terminal
logging.basicConfig(level=max(logging.WARNING - (args.verbose * 10), 0))

main_loop(args, mylogger)
```

So if it's run from cron, it'll go to syslog by default, but you can also just pass in like `--syslog` and it'll do that from the shell as well. I figure I kind of want `notify-send` messages sometimes too. Maybe always, maybe only for `CRITICAL` and above?

From depths of to some of world’s most isolated peoples are being squeezed by , crisis unfolding far from public view or effective state protection. Survival International attempts 1 of broadest tallies identifying @least 196 uncontacted Indigenous groups in 10 countries sharing Amazon rainforest. Report estimates nearly 65% face threats from 40% from around 20% from apnews.com/article/uncontacted

This June 2024 photo provided by Survival International shows members of the Mashco Piro along Las Piedras River in the Amazon near the community of Monte Salvado, in Madre de Dios province, Peru. (Survival International via AP, File)
AP News · What to know about uncontacted Indigenous peoples and efforts to protect themBy Steven Grattan
Continued thread

First, governments must formally recognize & enforce , making them off-limits to extractive industries.

Mapping is crucial, Bhattacharjee said, because identifying the approximate territories of peoples allows governments to protect those areas from or . But, she added, it must be done with extreme caution & from a distance to avoid contact that could endanger the groups’ or .

Continued thread

“These are what I would call silent — there are no TV crews, no . But they are happening, & they’re happening now,” said Fiona Watson, Survival’s research & advocacy director, who has worked on for >3 decades.

The issue often receives little priority from governments, which critics say see uncontacted as politically marginal because they don’t vote & their territories are often coveted for , & extraction.

peoples & efforts to protect them

From the depths of Brazil’s Amazon to Indonesia’s rainforests, some of the world’s most isolated peoples are being squeezed by , miners & drug traffickers—a crisis unfolding far from public view or effective state protection.


apnews.com/article/uncontacted

This June 2024 photo provided by Survival International shows members of the Mashco Piro along Las Piedras River in the Amazon near the community of Monte Salvado, in Madre de Dios province, Peru. (Survival International via AP, File)
AP News · What to know about uncontacted Indigenous peoples and efforts to protect themBy Steven Grattan

Fantastic ARTE documentary about the dark side and dangerous negative impacts of global tree planting & carbon credit programs, in reality often PR frauds/distractions, relying on lack of regulation & scientific errors, amounting to nothing more than clear cutting existing mature forests, replacing them with fast growing monocultures (mostly Eucalyptus or Douglas firs) for future logging activity, handing out subsidies to the forestry industry and displacing indigenous people/ecosystems... The film also covers various alternative approaches and activism projects for more sustainability and resilience...

Available in French & German (I wish ARTE would also offer English versions for a much larger audience...)

French: Planter à tout prix. Des arbres pour sauver la planète ?
arte.tv/fr/videos/111778-000-A

German: Retten Bäume den Planeten?
arte.tv/de/videos/111778-000-A

Outcry as plots more roads and in forests: ‘You can almost hear the chainsaws’

https://www.theguardian.com/us-news/2025/oct/06/trump-logging-forests

Critics say move to axe Bill Clinton’s ‘roadless rule’ that protected key old-growth forests will be devastating to environment
The Guardian · Outcry as Trump plots more roads and logging in US forests: ‘You can almost hear the chainsaws’By Oliver Milman

.
Communities and forest workers need a new social contract, not a corporate bailout.

watershedsentinel.ca/article/s

In June, USW Local 1-1937 went on strike in Tree Farm License 64 because the company insists on hiring non-union contractors to do union work. The new TFL is held by Western Forest Products and La-Kwa sa muqw, a partnership of four Vancouver Island First Nations: Tlowitsis, We Wai Kai, Wei Wai Kum, and K’omoks.

Forest industry losses will continue because the Canadian lumber industry is barely profitable. Almost all the old growth forests are gone. The easy-to-reach, low-elevation, high-value trees were taken years ago. What’s left is the “guts and feathers,” as Wilderness Committee campaign director Joe Foy says.

It costs politicians nothing to claim that this bailout will benefit workers. But the only thing they can guarantee is a new round of austerity: cutting wages and benefits and replacing union workers with non-union contractors – the same gambit that led to the Steelworkers’ strike.

In the distance, the 100-year forest. In the foreground, what’s left when a strip of that forest is felled, yarded, hauled, and most of what’s left is heaped into 4-metre high piles. All of that happened less than 12 months ago. In the next season the forest’s renewal will become evident. In the meantime, there’s a scar. And my memories of stillness, deer, bear, and big Douglas Firs.

OWASP Ottawa September Meetup – Logging, Monitoring & MCP Security

Join us in person at the University of Ottawa on September 17, 2025, for our next technical deep dive into one of the most overlooked yet critical aspects of cybersecurity: observability.

Date: September 17, 2025
Time: 6:00 PM EST – Arrival, networking & pizza
6:30 PM EST – Technical Talks
Location: 150 Louis-Pasteur Private, University of Ottawa, Room 117
Talk: “Finally! Sufficient Logging and Monitoring (MCP Edition)”
Speaker: Robert Babaev

Observability is often neglected, yet it’s a cornerstone of effective security. Robert will explore:
Centralized logging, metrics, and tracing
Building a lightweight SIEM
Practical tips & tricks for developers
Why strong monitoring matters in the age of AI & MCP

Can’t join in person? You can catch the livestream on our YouTube channel at youtube.com/@OWASP_Ottawa

RSVP here: meetup.com/owasp-ottawa/events

Come for the learning, stay for the community (and pizza!).