Configuration
WikiMason configuration uses TOML files. Configuration is resolved in this precedence order:
Explicit
--config /path/to/file.tomlLocal
wikimason.toml(walked upwards from cwd)--env NAME→~/.config/wikimason/NAME.tomlDefault env
~/.config/wikimason/default.tomlBuilt-in defaults
If both a local config and --env are present, the local config wins (it is
more specific to the project). A diagnostic is emitted when a local config
causes --env to be ignored.
Example
config_version = 1
[wiki]
name = "my_wiki"
profile = "logseq"
root = "~/Documents/Logseq/MyGraph"
[paths]
raw = "Raw"
sources = "Raw/Sources"
files = "Raw/Files"
wiki = "Wiki"
schema = "Schema"
templates = "_templates"
agents = "AGENTS.md"
[links]
style = "wikilink"
[profile.logseq]
flat_pages = true
namespace_separator = "___"
property_style = "logseq"
pages_dir = "pages"
[profile.obsidian]
hub_filename = "_index.md"
nested_dirs = true
exclude = [".obsidian/workspace.json"]
[profile.markdown]
hub_filename = "index.md"
nested_dirs = true
Commands
Show the active config
wikimason config show --format json
Open config in $EDITOR
wikimason config edit
Validate config
wikimason config validate --format json
Logging
WikiMason supports configurable operational logging and rotation.
[logging]
enabled = true
path = "Wiki/log.md"
mode = "normal" # quiet | normal | diagnostic
min_level = "info" # info | warning | error
include_audit_success = false
include_metadata = false
include_counts = "non_clean" # never | non_clean | always
max_summary_chars = 160
include_commands = []
exclude_commands = [
"doctor",
"vault.doctor",
"links.check",
"source.coverage",
"ingest.plan",
]
[logging.rotation]
enabled = true
strategy = "size" # none | size
max_bytes = 1048576
max_files = 5
archive_dir = "Wiki/logs"
Behavior:
mode = "normal"logs changes and actionable/problem states with compact entries.mode = "diagnostic"logs full verbose audit/change entries (legacy shape).mode = "quiet"logs only warnings/errors/actionable/problem outcomes.enabled = falsesuppresses automatic logs, butwikimason log addstill writes.