refactor(cli): mkdir and log to doom-state-dir
This will be more meaningful in v3, when we start writing profile data to $XDG_{DATA,STATE,CACHE}_HOME instead of $EMACSDIR/.local.
This commit is contained in:
parent
ce6be8c1b1
commit
18da873a8c
1 changed files with 3 additions and 2 deletions
|
@ -20,7 +20,8 @@
|
||||||
(mapc (doom-rpartial #'make-directory 'parents)
|
(mapc (doom-rpartial #'make-directory 'parents)
|
||||||
(list doom-local-dir
|
(list doom-local-dir
|
||||||
doom-data-dir
|
doom-data-dir
|
||||||
doom-cache-dir))
|
doom-cache-dir
|
||||||
|
doom-state-dir))
|
||||||
|
|
||||||
;; HACK: Load `cl' and site files manually to prevent polluting logs and
|
;; HACK: Load `cl' and site files manually to prevent polluting logs and
|
||||||
;; stdout with deprecation and/or file load messages.
|
;; stdout with deprecation and/or file load messages.
|
||||||
|
@ -229,7 +230,7 @@ If nil, falls back to less.")
|
||||||
Only applies if (exit! :pager) or (exit! :pager?) are called.")
|
Only applies if (exit! :pager) or (exit! :pager?) are called.")
|
||||||
|
|
||||||
;;; Logger settings
|
;;; Logger settings
|
||||||
(defvar doom-cli-log-file-format (expand-file-name "logs/cli.%s.%s.%s" doom-local-dir)
|
(defvar doom-cli-log-file-format (expand-file-name "logs/cli.%s.%s.%s" doom-state-dir)
|
||||||
"Where to write any output/log file to.
|
"Where to write any output/log file to.
|
||||||
|
|
||||||
Must have two arguments, one for session id and the other for log type.")
|
Must have two arguments, one for session id and the other for log type.")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue