Skip to content

Commit 0103dbd

Browse files
committed
Add default for LogDir in docs and config file
1 parent 108f52b commit 0103dbd

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

docs/config.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,13 @@ Logging
209209
``LogActivity``:
210210
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``.
211211
``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: ``"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'``.
213213
``ActivityLogColumns``:
214214
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']``.
215215
``AppLogFilename``:
216216
The Application redirects standard output and error to this file, if this is set in production mode. Default: ``'Application.log'``.
217217
```LogDir``:
218-
The directory where log files should be stored. All log files without an explicit path will be put here.
218+
The directory where log files should be stored. All log files without an explicit path will be put here. Default: ``'Logs'``.
219219
``Verbose``:
220220
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``.
221221
``SilentURIs``:

webware/Configs/Application.config

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ FilesToHide = {
2828
# If specified, only files matching these patterns will be served:
2929
FilesToServe = [] # no limitation
3030

31+
# Logging:
32+
LogDir = 'Logs'
3133
AppLogFilename = None if Development else 'Application.log'
3234

3335
LogActivity = False
@@ -38,6 +40,7 @@ ActivityLogColumns = [
3840
'transaction.duration', 'transaction.errorOccurred'
3941
]
4042

43+
# Contexts:
4144
Contexts = {}
4245
Contexts['Examples'] = WebwarePath + '/Examples'
4346
Contexts['Admin'] = WebwarePath + '/Admin'

0 commit comments

Comments
 (0)