You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/monitor/lib/monitor-options.js
+6-7Lines changed: 6 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -111,14 +111,12 @@ export class WindowOptions {
111
111
*/
112
112
exportconstLogModes={
113
113
/**
114
-
* Logs by tailing the app's log files. Slight lag, but can result in better formatting than bus.
115
-
* @type {string}
114
+
* Logs by tailing the app's log files. Slight lag, but can result in better formatting than bus. Not recommended, as logs cannot be rotated by launchpad.
116
115
*/
117
116
TailLogFile: 'file',
118
117
119
118
/**
120
119
* Logs directly from the app's stdout/stderr bus. Can result in interrupted logs if the buffer isn't consistently flushed by an app.
121
-
* @type {string}
122
120
*/
123
121
LogBusEvents: 'bus',
124
122
};
@@ -129,7 +127,7 @@ export const LogModes = {
129
127
exportclassAppLogOptions{
130
128
constructor({
131
129
logToLaunchpadDir =true,
132
-
mode =LogModes.TailLogFile,
130
+
mode =LogModes.LogBusEvents,
133
131
showStdout =true,
134
132
showStderr =true,
135
133
}={}){
@@ -142,10 +140,10 @@ export class AppLogOptions {
142
140
143
141
/**
144
142
* How to grab the app's logs. Supported values:
145
-
* - `'file'`: Logs by tailing the app's log files. Slight lag, but can result in better formatting than bus.
146
143
* - `'bus'`: Logs directly from the app's stdout/stderr bus. Can result in interrupted logs if the buffer isn't consistently flushed by an app.
147
-
* @type {string}
148
-
* @default 'file'
144
+
* - `'file'`: Logs by tailing the app's log files. Slight lag, but can result in better formatting than bus. Not recommended, as logs cannot be rotated by launchpad.
0 commit comments