@cca-io/re-logger
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "re-logger", | ||
"namespace": true, | ||
"name": "@cca-io/re-logger", | ||
"sources": ["src"], | ||
@@ -5,0 +4,0 @@ "reason": { |
{ | ||
"name": "@cca-io/re-logger", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Simple logger library for Reason/BuckleScript apps", | ||
"main": "src/Logger.bs.js", | ||
"main": "src/ReLogger.bs.js", | ||
"repository": "https://github.com/cca-io/re-logger.git", | ||
@@ -7,0 +7,0 @@ "author": "Christoph Knittel <ck@cca.io>", |
@@ -26,15 +26,2 @@ # re-logger | ||
This library uses the namespace `ReLogger` to avoid conflicts if there is already a `Logger` module in your project. If that is not the case, you may want to open the `ReLogger` module globally in your `bsconfig.json`: | ||
``` | ||
{ | ||
"name": "my-app", | ||
... | ||
"bs-dependencies": ["reason-react", "@cca-io/re-logger"], | ||
... | ||
"bsc-flags": ["-bs-super-errors", "-open ReLogger"], | ||
... | ||
} | ||
``` | ||
## Usage | ||
@@ -45,6 +32,4 @@ | ||
```reason | ||
open ReLogger; /* unless you already opened it globally in bsconfig.json */ | ||
module Log = (val ReLogger.make(__MODULE__)); | ||
module Log = (val Logger.make(__MODULE__)); | ||
Log.info("Starting"); | ||
@@ -60,3 +45,3 @@ | ||
```reason | ||
Logger.setLoggerImpl((module MyNativeLoggerImpl)); | ||
ReLogger.setLoggerImpl((module MyNativeLoggerImpl)); | ||
``` |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
9685
7
124
45
3