Skip to content

Configuration Reference

OptionTypeDefaultRequiredDescription
projectIdstringYesProject identifier, auto-creates in desktop app
apiKeystringYesAPI key (any string works for local mode)
mode"local" | "desktop" | "cloud"YesDetermines endpoint URL
endpointstringNoOverride endpoint URL
envstringNoEnvironment label
appNamestringNoApplication name
appVersionstringNoApplication version
defaultTagsRecord<string, string>{}NoTags merged into every log
batchSizenumber10NoLogs before auto-flush
flushIntervalnumber5000NoAuto-flush interval (ms)
fetchfunctionglobalThis.fetchNoCustom fetch implementation
isDebugbooleanfalseNoDisables gzip compression
ModeURL
localhttp://localhost:17655
desktophttp://localhost:8787
cloudhttps://api.gunsole.com

LogOptions (what you pass to gun.info(), etc.)

Section titled “LogOptions (what you pass to gun.info(), etc.)”
FieldTypeRequiredDescription
messagestringYesHuman-readable log message
bucketstringYesCategory name (auto-created)
contextRecord<string, unknown>NoArbitrary structured data
tagsRecord<string, string>NoFilterable key-value pairs (strings only)
traceIdstringNoLinks related log entries

These are set automatically by the SDK and sent with every log:

FieldSource
levelDetermined by method: info(), debug(), warn(), error()
timestampDate.now() (unix milliseconds)
userIdFrom gun.setUser({ id: "..." })
sessionIdFrom gun.setSessionId("...")
envFrom config
appNameFrom config
appVersionFrom config

SettingDefaultDescription
Log retention (days)UnlimitedAuto-delete logs older than N days
Auto-delete old logsOffEnable/disable retention enforcement
SettingDefaultDescription
Log retention (days)Inherits projectOverride project retention per bucket
SettingOptionsDescription
ThemeLight / Dark / AutoUI color scheme

SettingValue
Default port17655
Hostlocalhost only
CORSEnabled (all origins)
Compressiongzip accepted on request body

These are compiled into the desktop app and not user-configurable:

ConstantValueDescription
Log batch size50Max logs per flush to DB
Batch interval100msMax time between DB flushes
Frontend buffer~2000 logsMax in-memory logs in viewer
New log animation3 secondsGreen fade duration for new entries

SettingValue
EngineSQLite
Location (macOS)~/Library/Application Support/gunsole/gunsole.db
Location (Linux)~/.local/share/gunsole/gunsole.db
Location (Windows)%APPDATA%\gunsole\gunsole.db
Foreign keysEnabled
MigrationsAuto-run on startup