Skip to content

Commit 00c64ae

Browse files
author
root
committed
#61 updated the Read-Me
1 parent 7e847b5 commit 00c64ae

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ https://docs.python.org/2/library/logging.html#logging-levels.
149149
read more about it at https://docs.python.org/2/library/logging.html.
150150
151151
### Metric-Grouping
152-
We can collect the Metrics based on time interval.
152+
When writing a `Metric` using `self.log`, you can specify `type=metric`. If this is done, a background thread will automatically group multiple metrics into one by averaging values (to prevent writing too many log lines).
153153
test.py
154154
```
155155
from basescript import BaseScript
@@ -163,7 +163,7 @@ class Stats(BaseScript):
163163
def run(self):
164164
ts = time.time()
165165
while True:
166-
# New Metric Format.
166+
# Metric Format.
167167
self.log.info("stats", time_duration=(time.time()-ts), type="metric", random_number=random.randint(1, 50))
168168
169169
if __name__ == '__main__':

0 commit comments

Comments
 (0)