-
Notifications
You must be signed in to change notification settings - Fork 0
Logging API
v2rayroot edited this page Jun 14, 2026
·
1 revision
Configure logging before starting the runtime.
void SetLogOutput(char *path);Sets both Xray access and error log paths. The directory must exist and be writable. An empty path does not clear previous configuration.
void SetLogLevel(char *level);Common levels:
debuginfowarningerrornone
- Prefer
warningorerror. - Rotate logs outside the library.
- Restrict filesystem permissions.
- Do not upload logs containing credentials or share URIs.
- Record
GetVersionInfoin sanitized support bundles.