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: docs/appdev.rst
+2-2
Original file line number
Diff line number
Diff line change
@@ -281,7 +281,7 @@ Activity Log
281
281
Three options let you control:
282
282
283
283
* Whether or not to log activity (``LogActivity``, defaults to 0, i.e. off)
284
-
* The name of the file to store the log (``ActivityLogFilename``, defaults to ``Logs/Activity.csv``)
284
+
* The name of the file to store the log (``ActivityLogFilename``, defaults to ``Activity.csv``)
285
285
* The fields to store in the log (``ActivityLogColumns``) </ul>
286
286
287
287
See the chapter on :ref:`configuration` for more information.
@@ -314,7 +314,7 @@ The most common technique is the infamous ``print`` statement which has been rep
314
314
315
315
For convenient debugging, the default ``Application.config`` file already uses the following conditional setting::
316
316
317
-
AppLogFilename = None if Development else 'Logs/Application.log'
317
+
AppLogFilename = None if Development else 'Application.log'
318
318
319
319
This will prevent standard output and error from being redirected to the log file in development mode, which makes it easier to find debugging output, and also makes it possible to use ``pdb`` (see below).
Copy file name to clipboardExpand all lines: docs/config.rst
+5-3
Original file line number
Diff line number
Diff line change
@@ -158,7 +158,7 @@ Errors
158
158
``UserErrorMessage``:
159
159
This is the error message that is displayed to the user when an uncaught exception escapes a servlet. Default: ``"The site is having technical difficulties with this page. An error has been logged, and the problem will be fixed as soon as possible. Sorry!"``
160
160
``ErrorLogFilename``:
161
-
The name of the file where exceptions are logged. Each entry contains the date and time, filename, pathname, exception name and data, and the HTML error message filename (assuming there is one). Default: ``Logs/Errors.csv``.
161
+
The name of the file where exceptions are logged. Each entry contains the date and time, filename, pathname, exception name and data, and the HTML error message filename (assuming there is one). Default: ``Errors.csv``.
162
162
``SaveErrorMessages``:
163
163
If True, then errors (e.g., uncaught exceptions) will produce an HTML file with both the user message and debugging information. Developers/administrators can view these files after the fact, to see the details of what went wrong. These error messages can take a surprising amount of space. Default: ``True`` (do save).
164
164
``ErrorMessagesDir``:
@@ -209,11 +209,13 @@ Logging
209
209
``LogActivity``:
210
210
If True, then the execution of each servlet is logged with useful information such as time, duration and whether or not an error occurred. Default: ``True``.
211
211
``ActivityLogFilenames``:
212
-
This is the name of the file that servlet executions are logged to. This setting has no effect if ``LogActivity`` is False. The path can be relative to the Webware location, or an absolute path. Default: ``"Logs/Activity.csv"``.
212
+
This is the name of the file that servlet executions are logged to. This setting has no effect if ``LogActivity`` is False. The path can be relative to the Webware location, or an absolute path. Default: ``"Activity.csv"``.
213
213
``ActivityLogColumns``:
214
214
Specifies the columns that will be stored in the activity log. Each column can refer to an object from the set [application, transaction, request, response, servlet, session] and then refer to its attributes using "dot notation". The attributes can be methods or instance attributes and can be qualified arbitrarily deep. Default: ``['request.remoteAddress', 'request.method', 'request.uri', 'response.size', 'servlet.name', 'request.timeStamp', 'transaction.duration', 'transaction.errorOccurred']``.
215
215
``AppLogFilename``:
216
-
The Application redirects standard output and error to this file, if this is set in production mode. Default: ``'Logs/Application.log'``.
216
+
The Application redirects standard output and error to this file, if this is set in production mode. Default: ``'Application.log'``.
217
+
```LogDir``:
218
+
The directory where log files should be stored. All log files without an explicit path will be put here.
217
219
``Verbose``:
218
220
If True, then additional messages are printed while the Application runs, most notably information about each request such as size and response time. Default: ``True``.
0 commit comments