Skip to content

Commit

Permalink
docs: Update Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielMuller committed Oct 22, 2024
1 parent 89611e0 commit b92b32f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,14 @@ The `Logger` instance can be re-used across modules, allowing to keep globally d

**helpers/logger.js**
```javascript
const { Logger } = require("logger");
const { Logger } = require("@serverless-guru/logger");
const logger = new Logger("myService", "myFirstApplication");
const metricUnits = Logger.METRIC_UNITS;
module.exports = { logger, metricUnits };
```
**helpers/math.js**
```javascript
import { logger } from './logger'
const { logger } = require('./logger')

export const multiply = async (n, factor) => {
const sleepMs = Math.floor(Math.random() * 1000 * factor)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@serverless-guru/logger",
"version": "1.0.0",
"version": "1.0.1",
"description": "Common logger utility",
"main": "./lib/cjs/index.js",
"types": "./lib/cjs/index.d.ts",
Expand Down

0 comments on commit b92b32f

Please sign in to comment.