Skip to content
This repository was archived by the owner on Mar 3, 2022. It is now read-only.

Commit

Permalink
By TravisCarden: Fixed a few little niggles.
Browse files Browse the repository at this point in the history
  • Loading branch information
TravisCarden committed May 26, 2015
1 parent 54145fa commit a5d0339
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ function example_logger_event($name, $type = 'count', $value = 1) {
```

Event names should be [Graphite](http://graphite.readthedocs.org/)-compatible,
i.e., paths delimited by dots (`.`). See [Getting Your Data Into Graphite: Step 1]
i.e., paths delimited by dots (`.`). See
[Getting Your Data Into Graphite: Step 1]
(http://graphite.readthedocs.org/en/latest/feeding-carbon.html#step-1-plan-a-naming-hierarchy)
for some helpful advice.

Expand Down
10 changes: 5 additions & 5 deletions logger.module
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function logger_hook_info_alter(&$hooks) {
* @param string $name
* The name of the event you want to log.
* @param string $type
* (optional) The type of metric to log--one of the following values
* (Optional) The type of metric to log--one of the following values
* corresponding to the
* @link https://github.com/etsy/statsd/blob/master/docs/metric_types.md StatsD Metric Types @endlink
* :
Expand All @@ -40,7 +40,7 @@ function logger_hook_info_alter(&$hooks) {
* - set: The corresponding value is a value to add to a set of unique values.
* - time: The corresponding value is a duration in milliseconds.
* @param int $value
* (optional) The numeric value you wish to log. Defaults to 1.
* (Optional) The numeric value you wish to log. Defaults to 1.
*
* @see hook_logger_event()
*/
Expand Down Expand Up @@ -74,7 +74,7 @@ function logger_event($name, $type = 'count', $value = 1) {
* @param string $process_name
* The 'process_name' component used in the logger event name.
* @param string $group
* (optional) The 'group' component used in the logger event name. Defaults to
* (Optional) The 'group' component used in the logger event name. Defaults to
* 'logger'.
*/
function logger_log_process_start($process_name, $group = 'logger') {
Expand All @@ -91,10 +91,10 @@ function logger_log_process_start($process_name, $group = 'logger') {
* @param string $process_name
* The 'process_name' component used in the logger event name.
* @param string $group
* (optional) The 'group' component used in the logger event name. Defaults to
* (Optional) The 'group' component used in the logger event name. Defaults to
* 'logger'.
* @param string $status
* (optional) The 'status' component used in the logger event name. Defaults
* (Optional) The 'status' component used in the logger event name. Defaults
* to 'ok'.
*/
function logger_log_process_end($process_name, $group = 'logger', $status = 'ok') {
Expand Down
2 changes: 1 addition & 1 deletion tests/logger.test
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class LoggerUnitTestCase extends DrupalUnitTestCase {
$this->fail($test_case['failure_message']);
}
catch (InvalidArgumentException $e) {
$this->pass($test_case['success_message'] . ' Exception messge: ' .
$this->pass($test_case['success_message'] . ' Exception message: ' .
$e->getMessage());
}
}
Expand Down
2 changes: 1 addition & 1 deletion tests/modules/logger_test/logger_test.module
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/**
* @file
* Test implementation of hook_logger_event(), used for simpletest.
* Support module for logger testing.
*/

/**
Expand Down

0 comments on commit a5d0339

Please sign in to comment.