diff --git a/README.md b/README.md index 0e89e6d..c2edc4b 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ This library is loosely based upon the [official GO client](https://github.com/h |PHPConsulAPI Version|Consul Version| |---|---| |0.3.x|0.6.4| -|dev-master|0.7.0| +|0.4.x|0.7.x| ## Composer @@ -22,7 +22,7 @@ Require Entry: ```json { "require": { - "dcarbone/php-consul-api": "dev-master" + "dcarbone/php-consul-api": "@stable" } } ``` @@ -94,8 +94,8 @@ Next, construct a [Consul](./src/Consul.php) object: $consul = new \DCarbone\PHPConsulAPI\Consul($config); ``` -*NOTE*: If you do not create your own config object, [Consul](./src/Consul.php#L59) will create it's own -using [Config::newDefaultConfig()](./src/Config.php#L142). +*NOTE*: If you do not create your own config object, [Consul](./src/Consul.php#L72) will create it's own +using [Config::newDefaultConfig()](./src/Config.php#L145) and attempt to locate a suitable HTTP Client. Once constructed, you interact with each Consul API via it's corresponding Client class: diff --git a/docs/LOGGING.md b/docs/LOGGING.md index 2f58c26..75b979e 100644 --- a/docs/LOGGING.md +++ b/docs/LOGGING.md @@ -4,21 +4,12 @@ Logging is handled with the [Logger](../src/Logger.php) class. To register a ne [PSR-3](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md) compliant and implement the [Psr\LoggerInterface](https://github.com/php-fig/log/blob/master/Psr/Log/LoggerInterface.php ) interface. -## Provided Loggers +## Debug Logger -There are a few Logger classes provided by this lib: +There is a single logger provided, the [FileDebugLogger](../src/FileDebugLogger.php) -- [FileLogger](../src/FileLogger.php) -- [PHPLogger](../src/PHPLogger.php) -- [SocketLogger](../src/SocketLogger.php) - -## Default Logger - -For quick and lazy debugging or the like, you may optionally call [Logger::addDefaultLogger](../src/Logger.php#L73). -This creates a new [FileLogger](../src/FileLogger.php) that writes to `var/logs/php-consul-api.log`. +To enable this logger, execute [Logger::addDebugLogger()](../src/Logger.php#L52) ## Adding Loggers -You may add a logger by calling [Logger::addLogger](../src/Logger.php#L112) - -## \ No newline at end of file +You may add a logger by calling [Logger::addLogger](../src/Logger.php#L90)