Преглед изворни кода

update usage example in README

tags/0.9.1
itismadness пре 4 година
родитељ
комит
b30b3ddafc
1 измењених фајлова са 10 додато и 8 уклоњено
  1. +10
    -8
      README.md

+ 10
- 8
README.md Прегледај датотеку

@@ -93,8 +93,8 @@ list($score, $details, $checksum_state, $log_text) = $logchecker->parse();

### Installation

```
$ composer require orpheusnet/logchecker
```bash
composer require orpheusnet/logchecker
```

### Usage
@@ -107,15 +107,17 @@ require __DIR__ . '/vendor/autoload.php';
use OrpheusNET\Logchecker\Logchecker;

$logchecker = new Logchecker();
$logchecker->new_file('/path/to/log/file');
list($score, $details, $checksum_state, $log_text) = $logchecker->parse();
print('Score: ' . $score . "\n");
print('Checksum: ' . $checksum_state . "\n");
$logchecker->newFile('/path/to/log/file');
$logchecker->parse();
print('Ripper : ' . $logchecker->getRipper() . "\n");
print('Version : ' . $logchecker->getRipperVersion() . "\n");
print('Score : ' . $logchecker->getScore() . "\n");
print('Checksum : ' . $logchecker->getChecksumState() . "\n");
print("\nDetails:\n");
foreach ($details as $detail) {
foreach ($logchecker->getDetails() as $detail) {
print(" {$detail}\n");
}
print("\nLog Text:\n{$log_text}");
print("\nLog Text:\n\n{$logchecker->getLog()}");
```

## Building


Loading…
Откажи
Сачувај