<commit_before># teststash-logger
- To use this just edit your build.sbt as follows:
```
libraryDependencies ++= Seq(
  "com.gu" %% "teststash-logger" % "1.0"
)
```

# Adding Test-Stash logging to your project
- Define your project name in your project config:
`"projectName" : "Test Project"`

- In logback.xml add TstashLogger as an appender:
```
...
<appender name="TSTASH" class="com.gu.automation.api.TstashAppender">
</appender>

<root level="info">
    ...
    <appender-ref ref="TSTASH"/>
</root>
```<commit_msg>stash logger read me update<commit_after># teststash-logger
- To use this just edit your build.sbt as follows:
```
libraryDependencies ++= Seq(
  "com.gu" %% "teststash-logger" % "1.0"
)
```

# Adding Test-Stash logging to your project
- Define your project name in your project config:
```
"projectName" : "Test Project"
"plugin": {
    "teststash.url" : "ws://10.252.93.148:8081/report"
}
```

- In logback.xml add TstashLogger as an appender:
```
...
<appender name="TSTASH" class="com.gu.automation.api.TstashAppender">
</appender>

<root level="info">
    ...
    <appender-ref ref="TSTASH"/>
</root>
```
{'fraction_non_alphanumeric': 0.1744906997342781, 'fraction_numerical': 0.015943312666076175, 'mean_word_length': 4.044642857142857, 'pattern_counts': {'":': 1, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 1, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2863137', 'n_tokens_mistral': 430, 'n_tokens_neox': 405, 'n_words': 105}