Add option to redirect output to file #918

Open
ghost wants to merge 2 commits from unknown repository into master
ghost commented 4 years ago (Migrated from github.com)

Can be useful for mobile ports.

Can be useful for mobile ports.
Calinou commented 4 years ago (Migrated from github.com)

PS: If this is not done already, remember to flush stdout and stderr on every line printed (or on a regular time basis). Otherwise, logs won't be saved if the game crashes, making troubleshooting much harder.

If you flush on every line printed, this requires some discipline on the developer side (don't spam printf() in production as this will decrease performance).

PS: If this is not done already, remember to flush `stdout` and `stderr` on every line printed (or on a regular time basis). Otherwise, logs won't be saved if the game crashes, making troubleshooting much harder. If you flush on every line printed, this requires some discipline on the developer side (don't spam `printf()` in production as this will decrease performance).
madebr commented 4 years ago (Migrated from github.com)

Diverting all logging calls to a function would be useful for ports.
This allows using the native android NDK logging facility: https://developer.android.com/ndk/reference/group/logging

Diverting all logging calls to a function would be useful for ports. This allows using the native android NDK logging facility: https://developer.android.com/ndk/reference/group/logging
erorcun (Migrated from github.com) reviewed 4 years ago
erorcun (Migrated from github.com) commented 4 years ago

Please move this one line below, so we can use it on WIN32.

Please move this one line below, so we can use it on WIN32.
This repo is archived. You cannot comment on pull requests.
Loading…
There is no content yet.