-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Logging to syslog #242
Comments
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or other activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted". Thank you for your contributions. |
…tio#242) Signed-off-by: Piotr Sikora <piotrsikora@google.com>
* Add Connection ID as property token (envoyproxy#583) Signed-off-by: gargnupur <gargnupur@google.com> * Update validation in Inline DNS table (envoyproxy#11897) (envoyproxy#584) Signed-off-by: Shriram Rajagopalan <rshriram@tetrate.io> Signed-off-by: Yuchen Dai <silentdai@gmail.com> Co-authored-by: Shriram Rajagopalan <rshriram@users.noreply.github.com> * build: make emscripten stable (envoyproxy#588) Signed-off-by: Lizan Zhou <lizan@tetrate.io> Co-authored-by: Nupur Garg <37600866+gargnupur@users.noreply.github.com> Co-authored-by: Shriram Rajagopalan <rshriram@users.noreply.github.com> Co-authored-by: Lizan Zhou <lizan@tetrate.io>
Introduces request interfaces for the Swift library. **Builder pattern** We elected to use a builder pattern for the following reasons: - Allows us to avoid making all properties mutable (such as those on `Request`). This is especially valuable because these types are classes instead of structs due to the fact that they need to be visible to Objective-C from Swift - Provides a clear separation between mutable/immutable states of these types since only builders can be modified - Allows consumers to easily convert between builders and the models, which will become particularly useful when we introduce features such as runtime filters in the future: ```swift func filter(request: Request) -> Request { return request .newBuilder() .addHeader(name: "x-new-header", value: "foo") .build() } ``` **Swift example** ```swift let request = RequestBuilder(method: .post, url: url) .addBody(data) .addHeader(name: "x-some-header", value: "foo") .addTrailer(name: "x-some-trailer", value: "foo") .build() ``` **Objective-C example** ```objc Request *request = [Request withMethod:RequestMethodGet url:url build:^(RequestBuilder *builder) { [builder addBody:bodyData]; [builder addHeaderWithName:@"x-some-header" value:@"foo"]; [builder addTrailerWithName:@"x-some-trailer" value:@"foo"]; }]; ``` **Notes** - `NSObject` and `@objc` classes had to be used in order for these types to be visible to Objective-C - Enums had to inherit from `Int` to be visible to Objective-C Resolves envoyproxy/envoy-mobile#122 Signed-off-by: Michael Rebello <mrebello@lyft.com> Signed-off-by: JP Simard <jp@jpsim.com>
Introduces request interfaces for the Swift library. **Builder pattern** We elected to use a builder pattern for the following reasons: - Allows us to avoid making all properties mutable (such as those on `Request`). This is especially valuable because these types are classes instead of structs due to the fact that they need to be visible to Objective-C from Swift - Provides a clear separation between mutable/immutable states of these types since only builders can be modified - Allows consumers to easily convert between builders and the models, which will become particularly useful when we introduce features such as runtime filters in the future: ```swift func filter(request: Request) -> Request { return request .newBuilder() .addHeader(name: "x-new-header", value: "foo") .build() } ``` **Swift example** ```swift let request = RequestBuilder(method: .post, url: url) .addBody(data) .addHeader(name: "x-some-header", value: "foo") .addTrailer(name: "x-some-trailer", value: "foo") .build() ``` **Objective-C example** ```objc Request *request = [Request withMethod:RequestMethodGet url:url build:^(RequestBuilder *builder) { [builder addBody:bodyData]; [builder addHeaderWithName:@"x-some-header" value:@"foo"]; [builder addTrailerWithName:@"x-some-trailer" value:@"foo"]; }]; ``` **Notes** - `NSObject` and `@objc` classes had to be used in order for these types to be visible to Objective-C - Enums had to inherit from `Int` to be visible to Objective-C Resolves envoyproxy/envoy-mobile#122 Signed-off-by: Michael Rebello <mrebello@lyft.com> Signed-off-by: JP Simard <jp@jpsim.com>
So does Envoy support syslog now? Could someone show me an example? |
It would be nice to be able to send access logs directly to a syslog server, making it easier to centralize logs.
The text was updated successfully, but these errors were encountered: