You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi hedii! I understand the issue and the requirement. If we provide default values "as a contract" for downstream libraries in gelf-php we could do it properly. How about we define either an uninstantiable class GraylogDefaults (abstract or private ctor) or an additional, namespaced file that carries all the Graylog2 default properties: host, port(s) for the different protocols, paths. This then becomes part of the library API and is not attached to a specific transport. I think it makes more sense, because there no 1:1 mapping between the defaults and transport implementations and also the concept of the transports is less universal than those defaults.
If we'd go with a class, we could even create static methods that spit out preconfigured transports and other objects for default Graylog2 use.
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi,
I am the owner of hedii/laravel-gelf-logger, a wrapper for laravel logging based on your repo.
Happy to see the v2 becoming stable.
You made some constants on the HttpTransport class private, is there any reason for that?
I think it should be public, because they are the default values for graylog, and i was getting these values from your repo (https://github.com/hedii/laravel-gelf-logger/blob/4310f353c771742dd9eb8034280ac64c8d6608ee/src/GelfLoggerFactory.php#L67).
This pull request change these constants from private to public.
Thanks for your work.