Skip to content

Inject Logger in service when available in Client#518

Merged
jamiehannaford merged 4 commits intorackspace:workingfrom
rvanlaak:logger-injection
Jan 7, 2015
Merged

Inject Logger in service when available in Client#518
jamiehannaford merged 4 commits intorackspace:workingfrom
rvanlaak:logger-injection

Conversation

@rvanlaak
Copy link
Copy Markdown
Contributor

@rvanlaak rvanlaak commented Jan 7, 2015

Inject the Logger into the Service when the Client already has one.

Also allow passing a PSR-3 Logger via the $options array in the OpenStack constructor.

Added tests to ensure that all services that can be created using the OpenStack class do support this.

* allow OpenStack Logger to be set via options array
@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.12%) when pulling 39c5b7c on Rvanlaak:logger-injection into c8e2de1 on rackspace:working.

@jamiehannaford
Copy link
Copy Markdown
Contributor

This is looking good. Would you mind adding a bit of documentation explaining the new OpenStack.php option? i.e. that it needs to implement LoggerInterface etc.

added information about injecting `Logger` in the client
also add `Logger` injection to Clients userguide
@rvanlaak
Copy link
Copy Markdown
Contributor Author

rvanlaak commented Jan 7, 2015

@jamiehannaford I've added some info to the getting started guide, and added a link to the clients userguide.

jamiehannaford pushed a commit that referenced this pull request Jan 7, 2015
Inject Logger in service when available in Client
@jamiehannaford jamiehannaford merged commit f660e72 into rackspace:working Jan 7, 2015
@rvanlaak
Copy link
Copy Markdown
Contributor Author

rvanlaak commented Jan 7, 2015

👍 can you release 1.12.2 tag so I don't have to step off my composer prefer-stable setting? ;)

@rvanlaak rvanlaak deleted the logger-injection branch January 7, 2015 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants