-
Notifications
You must be signed in to change notification settings - Fork 6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: dentiny <dentinyhao@gmail.com>
- Loading branch information
Showing
5 changed files
with
111 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from libcpp.string cimport string as c_string | ||
from libc.stdint cimport uint64_t | ||
from libcpp cimport bool as c_bool | ||
|
||
cdef extern from "ray/util/stream_redirection_options.h" nogil: | ||
cdef cppclass CStreamRedirectionOptions "ray::StreamRedirectionOption": | ||
CStreamRedirectionOptions() | ||
c_string file_path | ||
uint64_t rotation_max_size | ||
uint64_t rotation_max_file_count | ||
c_bool tee_to_stdout | ||
c_bool tee_to_stderr | ||
|
||
cdef extern from "ray/util/stream_redirection_utils.h" namespace "ray" nogil: | ||
void RedirectStdout(const CStreamRedirectionOptions& opt) | ||
void RedirectStderr(const CStreamRedirectionOptions& opt) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters