If -t STDERR, it can be assumed app.pl has been run from the console. If no logging has been configured it would make sense to default to console logging in this situation. That way an app can theoretically be a standalone script and still output errors somewhere.
If
-t STDERR
, it can be assumed app.pl has been run from the console. If no logging has been configured it would make sense to default to console logging in this situation. That way an app can theoretically be a standalone script and still output errors somewhere.