Files
Guanzhou Song 0ccb6090e5 Merged PR 1743014: Improve log infrastructure
Improve log infrastructure to output postgres, gateway and other logs to docker log for better visibility.

----
#### AI description  (iteration 1)
#### PR Classification
This pull request improves the log infrastructure by centralizing log management, enhancing log streaming, and adding graceful shutdown handling.

#### PR Summary
The changes standardize logging across components by implementing dynamic log streaming, centralized log directory setup, and proper process cleanup on container shutdown.
- `oss/scripts/emulator_entrypoint.sh`: Added a `cleanup` function and signal traps to gracefully terminate log streaming and gateway processes.
- `oss/scripts/emulator_entrypoint.sh`: Introduced the `start_log_streaming` function to stream logs for PostgreSQL, OSS server, and gateway with configurable prefixes.
- `oss/scripts/emulator_entrypoint.sh`: Configured centralized log directory creation, symlink creation for PostgreSQL logs, and updated log redirections using environment variables.
<!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->
2025-08-21 20:14:39 +08:00
..
2025-05-09 14:08:53 +08:00