@apify/log
Advanced tools
Comparing version 2.3.0 to 2.4.0
@@ -47,5 +47,8 @@ import { Logger } from './logger'; | ||
* ```js | ||
* const Apify = require('apify'); | ||
* const { log } = Apify.utils; | ||
* import log from '@apify/log'; | ||
* | ||
* // importing from the Apify SDK or Crawlee is also supported: | ||
* // import { log } from 'apify'; | ||
* // import { log } from 'crawlee'; | ||
* | ||
* log.info('Information message', { someData: 123 }); // prints message | ||
@@ -60,4 +63,4 @@ * log.debug('Debug message', { debugData: 'hello' }); // doesn't print anything | ||
* log.info('Info message'); // doesn't print anything | ||
* log.error('Error message', { errorDetails: 'This is bad!' }); // prints message | ||
* | ||
* log.error('Error message', { errorDetails: 'This is bad!' }); // prints message | ||
* try { | ||
@@ -64,0 +67,0 @@ * throw new Error('Not good!'); |
{ | ||
"name": "@apify/log", | ||
"version": "2.3.0", | ||
"version": "2.4.0", | ||
"description": "Tools and constants shared across Apify projects.", | ||
@@ -49,3 +49,3 @@ "main": "./index.js", | ||
}, | ||
"gitHead": "19e16689c264ff481ce0bfc77e6a8a49bb1e551f" | ||
"gitHead": "74cdb1b943c5354e5894477df4e5d61513ffdc3a" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
115456
1132