Skip to content

Commit

Permalink
Doc cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
donatj committed Jan 19, 2024
1 parent 72452a9 commit 116768b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
12 changes: 0 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -424,18 +424,6 @@ function clearLogs() : void

clearLogs clears all logs that have been logged to this logger.

---

#### Method: MemoryLogger::makeLogRecord

```php
function makeLogRecord($level, $message [, array $context = []]) : array
```

makeLogRecord is a helper function to create a log record.

It is exposed publicly so that it may be used in tests.

### Class: \Corpus\Loggers\MultiLogger

MultiLogger is a logger that delegates to multiple other loggers.
Expand Down
5 changes: 5 additions & 0 deletions src/MemoryLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ public function clearLogs() : void {
* makeLogRecord is a helper function to create a log record.
*
* It is exposed publicly so that it may be used in tests.
*
* @param mixed $level The log level
* @param string $message The log message
* @param mixed[] $context The log context
* @mddoc-ignore
*/
public static function makeLogRecord( $level, $message, array $context = [] ) : array {
return [
Expand Down

0 comments on commit 116768b

Please sign in to comment.