| 81 | } |
| 82 | |
| 83 | FILE * |
| 84 | rte_log_get_stream(void) |
| 85 | { |
| 86 | FILE *f = rte_logs.file; |
| 87 | |
| 88 | if (f == NULL) { |
| 89 | /* |
| 90 | * Grab the current value of stderr here, rather than |
| 91 | * just initializing default_log_stream to stderr. This |
| 92 | * ensures that we will always use the current value |
| 93 | * of stderr, even if the application closes and |
| 94 | * reopens it. |
| 95 | */ |
| 96 | return default_log_stream != NULL ? default_log_stream : stderr; |
| 97 | } |
| 98 | return f; |
| 99 | } |
| 100 | |
| 101 | /* Set global log level */ |
| 102 | void |
no outgoing calls