new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Better Auth · Reference · all subjects

options/logger

3 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

logger option fields

The logger option has the following fields: disabled (disable all logging when true; default: false), disableColors (disable colors in default logger; default: determined by terminal color support), level (minimum log level to display: 'debug' shows all, 'info' shows all except debug, 'warn' shows warnings and errors, 'error' shows only errors; default: 'warn'), log (custom logging function receiving level, message, and additional args).

logger example code

import { betterAuth } from "better-auth"; export const auth = betterAuth({ logger: { disabled: false, disableColors: false, level: "warn", log: (level, message, ...args) => { // Custom logging implementation console.log(`[${level}] ${message}`, ...args); } } })

logger with custom service example code

import { betterAuth } from "better-auth"; export const auth = betterAuth({ logger: { level: "info", log: (level, message, ...args) => { // Send logs to a custom logging service myLoggingService.log({ level, message, metadata: args, timestamp: new Date().toISOString() }); } } })

Give your agent this brain