Skip to content

Commit f6a1569

Browse files
committed
Update project-settings.md
1 parent 867cfd2 commit f6a1569

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

docs/en/manuals/project-settings.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,18 @@ The title of the application.
6161
The version of the application.
6262

6363
#### Write Log
64-
When checked, the engine will write a log file *log.txt* in the project root. When running on iOS, the log file can be accessed through iTunes and the *Apps* tab and the *File Sharing* section. On Android, the file is stored in the app's external storage. When running the *dmengine* development app, you can view the log with:
65-
66-
```bash
67-
$ adb shell cat /mnt/sdcard/Android/data/com.defold.dmengine/files/log.txt
68-
```
64+
When checked, the engine will write a log file. If running more than one instance from the editor the file will be named *instance_2_log.txt* with `2` being the instance index. If running a single instance or from a bundle the file will be named *log.txt* The location of the log file will be one of the following paths (tested in order):
65+
66+
1. The path specified in *project.log_dir*
67+
2. The system log path:
68+
* macOS/iOS: `NSDocumentDirectory`
69+
* Android: `getExternalFilesDir()`
70+
* Others: Application root
71+
3. The application support path
72+
* macOS/iOS: `NSApplicationSupportDirectory`
73+
* Windows: `CSIDL_APPDATA` (eg C:\Users\<username>\AppData\Roaming)
74+
* Android: `getFilesDir()`
75+
* Linux: `HOME` environment variable
6976

7077
#### Minimum Log Level
7178
Specify the minimum log level for the logging system. Only logs at or above this level will be shown.

0 commit comments

Comments
 (0)