Unified, contextual logging with automatic error diagnosis. One API for backend, frontend and mobile — so you stop guessing what went wrong in production.
Logger unificado, com contexto e diagnóstico automático de erros. Uma única API para backend, frontend e mobile — para você parar de adivinhar o que aconteceu em produção.
Logmind was built for teams that live in full‑stack land: a bit of Node, some React, a mobile app, lots of “what happened?” in production.
O Logmind nasceu para times que vivem no mundo full‑stack: um pouco de Node, um pouco de React, um app mobile, e muito “o que será que aconteceu?” em produção.
Context in every log: attach userId, requestId, tenantId once and have it everywhere.
Auto‑diagnosis: log.auto(err) classifies errors (database, network, validation, timeout, permission…) and adds a human hint.
Production‑ready: drop noisy debug logs, group repeated errors into a single [repeated Nx] event.
One API, three platforms: same mental model for Node, browser and React Native.
Install
npm install logmind
yarn add logmind
Node >= 16. Works great with Express, Fastify, Koa, React, Next.js, React Native and any framework that lets you call a logger.
Examples – click to see full code
Exemplos – clique para ver o código completo
Click any example below to display the full code. Use the copy button to paste into your project.
Clique em qualquer exemplo abaixo para ver o código completo. Use o botão copiar para colar no seu projeto.
Node básico
Referência rápida
1. Node.js – basic logger
import { initLogger, log } from "logmind";
initLogger({
app: "my-api",
version: "1.0.0",
env: process.env.NODE_ENV,
});
log.info("Service started");
log.warn("Token expiring soon");
try {
// your code
} catch (error) {
log.error("Failed to save order", error, { orderId: "ord_123" });
log.auto(error); // diagnosis field in the log
}