Urgent.News

What's breaking now, across thousands of outlets.

Tech

Implement Server-Side Logging for Node.js REST APIs: A 3-Layer Healthtech Design

The best way to implement server-side logging for a Node.js notification service is to emit structured JSON at the application boundary, add HTTP request context in middleware, and ship a deliberately retained subset to a centralized log system. Winston or Bunyan can produce the events; Morgan or a small custom handler can describe the request; a centralized system makes the timeline searchable.…

Implementing server-side logging for a Node.js REST API involves three key layers: the logger within the Node.js process, HTTP context, and centralized storage and search. The logger should emit structured JSON at the application boundary, using Winston or Bunyan for event production and Morgan or a custom handler for request description.

Centralized storage facilitates timeline searchability, while HTTP context adds request and response records using Morgan or a custom handler. Retaining only essential data, such as notification and provider IDs, attempt numbers, status, and timestamps, rather than the full message content, maintains privacy and simplifies incident reconstruction.

Centralized storage options like ELK Stack, Datadog, Loggly, or Infra's observability surface each have their merits and trade-offs. ELK Stack offers control over indexing and retention, Datadog provides a hosted search and correlation experience, Loggly offers hosted collection without an ELK deployment, and Infra's platform simplifies integration with other capabilities.

Ultimately, the goal is to retain enough identifiers and status to reconstruct the service path while minimizing privacy exposure and operational burden.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Zeen: A New Systems Programming Language with a Comptime Engine

Website: zeen-lang.tech Github: mealet/zeen (Would appreciate if you'd leave a star on Github) What is Zeen Zeen - a modern systems programming language designed for simplicity, safety, and…

  • Zeen is a modern systems programming language focused on simplicity and safety.
  • It features a Comptime Engine for compile-time evaluations and constructions.
  • Version v0.4.0 introduced enhanced frontend performance and a revamped Comptime Engine.

Brain cells meant to protect us may be fueling cognitive decline

VR에서 눈마다 다른 프레임을 렌더링한다는 것 — Amblyotube 사례 배경 ScienceDaily(2026년 10월)는 보호 세포로 알려진 뇌세포가 비정상적으로 많은 미엘린(myelin)을 생성해 신경 섬유를 방해하고 인지 저하에 기여할 수 있다는 연구를 보도했습니다. 신경 회로는 고정되어 있지 않고, 잘못된 방향으로 최적화될 수 있다는 이야기입니다.

  • Brain cells can produce excessive myelin, disrupting nerve function
  • Amblyotube app applies different post-processing to each eye
  • Neuroplasticity leveraged for visual training and accessibility

More from Wednesday 28 October →