Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cca-io/re-logger

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cca-io/re-logger - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

src/ReLogger.bs.js

3

bsconfig.json
{
"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));
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc