File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -63,11 +63,16 @@ cargo install gitui
63
63
64
64
# diagnostics:
65
65
66
- to enable logging to ` ~/.gitui/gitui.log ` :
66
+ to enable logging:
67
67
```
68
68
GITUI_LOGGING=true gitui
69
69
```
70
70
71
+ this will log to:
72
+ * ` $HOME/Library/Caches/gitui/gitui.log ` (mac)
73
+ * ` $XDG_CACHE_HOME/gitui/gitui.log ` (linux using ` XDG ` )
74
+ * ` $HOME/.cache/gitui/gitui.log ` (linux)
75
+
71
76
# inspiration
72
77
73
78
* https://github.com/jesseduffield/lazygit
Original file line number Diff line number Diff line change @@ -152,8 +152,8 @@ fn start_terminal<W: Write>(
152
152
153
153
fn setup_logging ( ) {
154
154
if env:: var ( "GITUI_LOGGING" ) . is_ok ( ) {
155
- let mut path = dirs:: home_dir ( ) . unwrap ( ) ;
156
- path. push ( ". gitui" ) ;
155
+ let mut path = dirs:: cache_dir ( ) . unwrap ( ) ;
156
+ path. push ( "gitui" ) ;
157
157
path. push ( "gitui.log" ) ;
158
158
fs:: create_dir ( path. parent ( ) . unwrap ( ) ) . unwrap_or_default ( ) ;
159
159
You can’t perform that action at this time.
0 commit comments