profile
viewpoint

Download/anylogger 12

Get a logger. Any logger.

Download/core 2

Wicketstuff-core projects are bundled user contributions for use with Apache Wicket. They are released in step with Wicket releases to make them easy to use.

Download/amdjs-api 1

Houses the Asynchronous Module Definition API

Download/anylogger-debug 1

Anylogger adapter for debug

Download/Apache-Felix-Javadocs 1

Javadocs for Apache Felix

Download/bootswatch 1

Themes for Bootstrap

Download/bridalapp-client 1

Javascript client for Bridalapp

Download/cmax 1

Container Managed Authorization eXtensions

Download/anylogger-log4js 0

Anylogger adapter for log4js

issue commentlog4js-node/log4js-node

TypeError: Cannot read property 'native' of undefined

I made a very simple codepen that reproduces this issue: https://codepen.io/StijnDeWitt/pen/rNxzOBE

There is a 'browserify cdn' that enables us to browserify any version of any module: https://wzrd.in The codepen uses this to browserify log4js and load it onto the page:

<script src="https://wzrd.in/standalone/log4js@6.3.0"></script>

We get this error:

Uncaught TypeError: Cannot read property 'native' of undefined
    at Object.89.graceful-fs (log4js@6.3.0:27)
    at i (log4js@6.3.0:1)
    at log4js@6.3.0:1
    at Object.90../copy (log4js@6.3.0:27)
    at i (log4js@6.3.0:1)
    at log4js@6.3.0:1
    at Object.<anonymous> (log4js@6.3.0:27)
    at Object.119../fileNameFormatter (log4js@6.3.0:27)
    at i (log4js@6.3.0:1)
    at log4js@6.3.0:1

I think we can solve this issue using the browser field in package.json. Note that the docs on NPM are incomplete. There is a better specification of the browser field that basically boils down to there being 2 forms for it:

  • String with the entry point for the browser version to replace main (as described in NPM docs)
  • Object with file names of node versions of the code as keys and filenames of the browser versions as values

Browserify, Webpack, Rollup et all are aware of this browser field and it's specification and are using it to resolve require calls to the right version of the module. That's why you can use the same browserify CDN with debug successfully. Browserify knows how to package debug because it uses the browser field in package.json.

I think log4js could use the browser field to make 2 versions of the core appenders. One version would be used in Node and would have file appender in it and the other version would be used in the browsers and would not have the file appender. I added a code review to #1023 suggesting this solution.

Eric8511

comment created time in 11 days

Pull request review commentlog4js-node/log4js-node

fix: log4js-node/log4js-node#968

 coreAppenders.set('stderr', require('./stderr')); coreAppenders.set('logLevelFilter', require('./logLevelFilter')); coreAppenders.set('categoryFilter', require('./categoryFilter')); coreAppenders.set('noLogFilter', require('./noLogFilter'));-coreAppenders.set('file', require('./file'));-coreAppenders.set('dateFile', require('./dateFile'));-coreAppenders.set('fileSync', require('./fileSync'));+coreAppenders.set('file', isNode ? require('./file') : {});+coreAppenders.set('dateFile', isNode ? require('./dateFile') : {});+coreAppenders.set('fileSync', isNode ? require('./fileSync'): {});

I wonder whether there is a better way to do this...

There is a field in package.json called browser that might be better suited for this use case. The way it works is this: You specify which file(s) to use instead of the default one(s), when running on the browser. For example, we could make a new file called core-appenders.js and place the lines creating the coreAppenders map and populating it with the core appenders in that file. We could then make a second file called core-appenders-browser.js and place the equivalent code for the browser in that file. Then, in package.json we would write:

{
  "browser": {
    "./lib/appenders/core-appenders.js": "./lib/appenders/core-appenders-browser.js"
  }
}

Then, Browserify, Webpack and Rollup et all will know to replace the code in core-appenders.js with the code in core-appenders-browser.js when building the browser version.

An example where this is used is the popular logging package debug: https://github.com/visionmedia/debug/blob/4.2.0/package.json#L55

There are two forms for the browser field:

  • Object with node file names as keys and browser filenames as values
  • File name of entry point to use instead of the one listed in the main field.
aellerton

comment created time in 11 days

Pull request review commentlog4js-node/log4js-node

fix: log4js-node/log4js-node#968

 const levels = require('../levels'); const layouts = require('../layouts'); const adapters = require('./adapters'); +const isNode =+  typeof process !== 'undefined' &&+  process.versions != null &&+  process.versions.node != null;+

Just a nitpick, but why check against null? I would expect:

const isNode = typeof process !== 'undefined' && process.versions && process.versions.node
aellerton

comment created time in 11 days

issue commentDownload/preact-helmet

Maintainers wanted

Yeah maybe that would be best. I have to think about it some more.

Download

comment created time in 12 days

issue commentDownload/ulog

Add `anylogger` support

Hi @toddb Can you have a look at anylogger.d.ts My problem is I have no experience with TypeScript. But this file was contributed by a TypeScript user and it looks fine to me... But I need someone with Typescript experience to check it / test it and help me fix the issues (if any) If you make a PR against the current version of the anylogger codebase I promise I will merge it. And if you feel it would be helpful I am willing to make you a contributor because we need more maintainers if we want this to be successful.

Download

comment created time in 13 days

created tagDownload/anylogger-loglevel

tag1.0.0

Anylogger adapter for loglevel

created time in 13 days

release Download/anylogger-loglevel

1.0.0

released time in 13 days

push eventDownload/anylogger-loglevel

Stijn de Witt

commit sha 2d9afc111e41b727fed47a84b40e8d4ce38327c7

1.0.0: Bundle with rollup, update dependencies, fix CI

view details

Stijn de Witt

commit sha 256017e1cf1510a0f31c05ea5a4dfafc324a8821

Merge branch 'master' of github.com:download/anylogger-loglevel

view details

push time in 13 days

push eventDownload/anylogger-loglevel

Stijn de Witt

commit sha 0f22be4b5a5a918238a956d6ed92d16edb78c4e2

1.0.0: Bundle with rollup, update dependencies, fix CI

view details

push time in 13 days

created tagDownload/anylogger-debug

tag1.0.1

Anylogger adapter for debug

created time in 13 days

release Download/anylogger-debug

1.0.1

released time in 13 days

push eventDownload/anylogger-debug

Stijn de Witt

commit sha 52c7154d05a787d065f059072093231eeda90c7f

1.0.1: Optimized minimized build

view details

push time in 13 days

created tagDownload/anylogger

tag1.0.3

Get a logger. Any logger.

created time in 14 days

release Download/anylogger

1.0.3

released time in 14 days

push eventDownload/anylogger

Stijn de Witt

commit sha 16bd4f955695c2cc9dc9f5b0b2b98b2ec8e156c2

1.0.3: Update Travis CI badge in README hoping it will start to reflect the actual build status

view details

push time in 14 days

issue commentDownload/ulog

Add `anylogger` support

Hi guys, thanks for your enthousiasm! And sorry that I've been unresponsive for a while. Life happened. Anyway I'm back on the job with anylogger and ulog. Frankly, I've first made a royal mess of it and then left it out in the cold for way too long and I'm amazed you guys are so patient with it. Thanks!

If you are still interested in these projects, I would urge you to have a look at anylogger as it is now, because I have just released 1.x. It took a long time to get here and I still see some more minor releases coming up but I feel it has been stable API wise for long enough now. Because I want to work very hard to make sure I can stay backward compatible from now on.

I've been talking to the author of log4js. Interestingly he had the same idea as I had for anylogger, but on a smaller scale. He has factored out the public API of log4js into a separate package log4js-api. Anylogger attempts to do the same thing but for any logger.

There are a bunch of adapters that are nearly ready and a bunch more that will probably come in the future. Hopefully at some point the community will pick up the ball and start producing other adapters where needed.

Currently these are working and either already on anylogger 1.x or will be ported to 1.x in the next couple of days:

As mentioned before, I am trying to get ulog to work with anylogger. I think I have been over-ambitious in the feature set. I really want formatters, bad. But I think I will make a release without them first to get 2.x out of the door. You guys deserve to get some stable working software finally because it has been in beta for way too long.

I am also working an an anylogger adapter for pino but I'm having trouble with it so it will probably have to wait until I can get some help on it from someone that is experienced with Pino.

Furthermore, there is a whole different problem set that I think can be solved with anylogger that I want to make a proof of concept for in the future... This is just in my head for now... But here it it:

I often end up with bundles made by Webpack that are bigger than I'd like them to be. When trying to strip the bundle size down, I found one common cause of bloat that I've found very hard to address and that is logging frameworks. As in plural. As in 4 different logging frameworks in use by my one single application! Not as I intended this! The reason this happens is that there are many libraries out there that include a logger. Granted, most of them include debug, but loglevel is also very popular and there are others. And well, since I tend to pick ulog I often end up with 3 or 4 different logging libraries in my app.... :(

So here is the idea: What if we can pipe all logging done to debug, loglevel, log4js etc to anylogger? We could do this using a reverse adapter! Imagine these reverse adapters:

  • debug-anylogger transforms debug logging to anylogger
  • loglevel-anylogger transforms loglevel logging to anylogger
  • log4js-anylogger transforms log4js logging to anylogger

We could then alias these logging libraries in e.g. Webpack, like this:

resolve: {
   alias: {
      "debug": "debug-anylogger",
      "loglevel": "loglevel-anylogger",
      "log4js": "log4js-anylogger",
   }
}

Webpack would then insert the adapters instead of the actual logging libraries. We would then install a regular anylogger adapter for the logger we end up choosing and instead of 4 logging libraries we get 1 logging library, 3 reverse adapters and one regular adapter. Ok so we will actually end up with more libraries in use, but the adapters tend to be waaaay smaller than the actual logging libraries so the end result should mean a significant reduction in code size. Oh and the joy of having all code in the app use the same logger, everywhere. That should make logging configuration much, much easier.

How difficult it will be to make these reverse adapters will depend on the complexity of the API of the logging framework the adapter is for and how well it maps on to anylogger. In fact, I am pretty sure that debug-anylogger won't even be needed and we could actually already do:

resolve: {
   alias: {
      "debug": "anylogger",
   }
}

because I made the API of anylogger so it's backwards compatible with debug. However, for loglevel and log4js it will be a bit harder. But hopefully not too hard!

So maybe you can see where I want this to end up. A simple mechanism to decouple javascript libraries from loggers so we can pick that only at the application level.

And as the author of ulog, I'd love for ulog to become the go-to logger to pick that is easy (because it's a native anylogger implementation) and that offers a feature set that can substitute for debug, loglevel and log4js.

Anyway, if one of you in enthousiastic enough about all this to want to join in development, please let me know and I will gladly make you a contributor.

Thanks for your support and patience!

-Stijn

Download

comment created time in 14 days

pull request commentDownload/preact-helmet

TypeScript type definitions

I think there is probably some small issue with the tests, because they worked when I last looked at this.

Please become a maintainer, then you can merge it yourself :) Join the discussion at #34

DamianoMagrini

comment created time in 14 days

issue openedDownload/preact-helmet

Maintainers wanted

@IrvingArmenta @rosenbjerg @squidfunk @DamianoMagrini @acangiani @DannyAziz

Hi Guys,

There was a time, not too long ago, that I was completely in love with Preact. And in fact, I still am. But I have not had the opportunity to use Preact in a while now and I don't see it coming in the very near future so I don't really have the motivation / time at the moment to maintain this project in my spare time... which is a shame if this code is actually helping you guys, which is what I as an Open Source developer dream of.

So maybe some of you guys would be willing to pick up the ball so to speak and help me maintain this thing? Basically I will give you 'da power' to do what you want with this repo. I'll also try to help set it up so you guys can publish to NPM by yourselves.

What do you say?

created time in 14 days

created tagDownload/anylogger-debug

tag1.0.0

Anylogger adapter for debug

created time in 14 days

release Download/anylogger-debug

1.0.0

released time in 14 days

push eventDownload/anylogger-debug

Stijn de Witt

commit sha 26de877b72be512c810f52d2119f5ba6f21d09c0

Fix CI: Mocha needs Node >= 10

view details

push time in 14 days

delete branch Download/anylogger-debug

delete branch : greenkeeper/cross-env-7.0.0

delete time in 14 days

PR closed Download/anylogger-debug

Update cross-env to the latest version 🚀 greenkeeper

The devDependency cross-env was updated from 6.0.3 to 7.0.0.

This version is not covered by your current version range.

If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.


Publisher: kentcdodds License: MIT

<details> <summary>Release Notes for v7.0.0</summary>

<h1><a href="https://urls.greenkeeper.io/kentcdodds/cross-env/compare/v6.0.3...v7.0.0">7.0.0</a> (2020-01-25)</h1> <h3>Features</h3> <ul> <li>update dependencies (<a href="https://urls.greenkeeper.io/kentcdodds/cross-env/issues/223" data-hovercard-type="pull_request" data-hovercard-url="/kentcdodds/cross-env/pull/223/hovercard">#223</a>) (<a href="https://urls.greenkeeper.io/kentcdodds/cross-env/commit/4ec6f4009d05c571d1737306cb787499d511048b">4ec6f40</a>)</li> </ul> <h3>BREAKING CHANGES</h3> <ul> <li>Drop Node 8 support</li> </ul> </details>

<details> <summary>Commits</summary> <p>The new version differs by 1 commits.</p> <ul> <li><a href="https://urls.greenkeeper.io/kentcdodds/cross-env/commit/4ec6f4009d05c571d1737306cb787499d511048b"><code>4ec6f40</code></a> <code>feat: update dependencies (#223)</code></li> </ul> <p>See the <a href="https://urls.greenkeeper.io/kentcdodds/cross-env/compare/67f21c32543af0ecdbaf2508d620d81d3307a433...4ec6f4009d05c571d1737306cb787499d511048b">full diff</a></p> </details>


<details> <summary>FAQ and help</summary>

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper. </details>


Your Greenkeeper bot :palm_tree:

+6 -6

2 comments

2 changed files

greenkeeper[bot]

pr closed time in 14 days

delete branch Download/anylogger-debug

delete branch : greenkeeper/mocha-7.0.1

delete time in 14 days

PR closed Download/anylogger-debug

Update mocha to the latest version 🚀 greenkeeper

The devDependency mocha was updated from 6.2.2 to 7.0.1.

This version is not covered by your current version range.

If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.


Publisher: juergba License: MIT

<details> <summary>Release Notes for v7.0.1</summary>

<h1>7.0.1 / 2020-01-25</h1> <h2><g-emoji class="g-emoji" alias="bug" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f41b.png">🐛</g-emoji> Fixes</h2> <ul> <li><a href="https://urls.greenkeeper.io/mochajs/mocha/issues/4165" data-hovercard-type="pull_request" data-hovercard-url="/mochajs/mocha/pull/4165/hovercard">#4165</a>: Fix exception when skipping tests programmatically (<a href="https://urls.greenkeeper.io/juergba"><strong>@juergba</strong></a>)</li> <li><a href="https://urls.greenkeeper.io/mochajs/mocha/issues/4153" data-hovercard-type="pull_request" data-hovercard-url="/mochajs/mocha/pull/4153/hovercard">#4153</a>: Restore backwards compatibility for <code>reporterOptions</code> (<a href="https://urls.greenkeeper.io/holm"><strong>@holm</strong></a>)</li> <li><a href="https://urls.greenkeeper.io/mochajs/mocha/issues/4150" data-hovercard-type="pull_request" data-hovercard-url="/mochajs/mocha/pull/4150/hovercard">#4150</a>: Fix recovery of an open test upon uncaught exception (<a href="https://urls.greenkeeper.io/juergba"><strong>@juergba</strong></a>)</li> <li><a href="https://urls.greenkeeper.io/mochajs/mocha/issues/4147" data-hovercard-type="pull_request" data-hovercard-url="/mochajs/mocha/pull/4147/hovercard">#4147</a>: Fix regression of leaking uncaught exception handler (<a href="https://urls.greenkeeper.io/juergba"><strong>@juergba</strong></a>)</li> </ul> <h2><g-emoji class="g-emoji" alias="book" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4d6.png">📖</g-emoji> Documentation</h2> <ul> <li><a href="https://urls.greenkeeper.io/mochajs/mocha/issues/4146" data-hovercard-type="pull_request" data-hovercard-url="/mochajs/mocha/pull/4146/hovercard">#4146</a>: Update copyright & trademark notices per OJSF (<a href="https://urls.greenkeeper.io/boneskull"><strong>@boneskull</strong></a>)</li> <li><a href="https://urls.greenkeeper.io/mochajs/mocha/issues/4140" data-hovercard-type="pull_request" data-hovercard-url="/mochajs/mocha/pull/4140/hovercard">#4140</a>: Fix broken links (<a href="https://urls.greenkeeper.io/KyoungWan"><strong>@KyoungWan</strong></a>)</li> </ul> <h2><g-emoji class="g-emoji" alias="nut_and_bolt" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f529.png">🔩</g-emoji> Other</h2> <ul> <li><a href="https://urls.greenkeeper.io/mochajs/mocha/issues/4133" data-hovercard-type="pull_request" data-hovercard-url="/mochajs/mocha/pull/4133/hovercard">#4133</a>: Print more descriptive error message (<a href="https://urls.greenkeeper.io/Zirak"><strong>@Zirak</strong></a>)</li> </ul> </details>

<details> <summary>Commits</summary> <p>The new version differs by 61 commits ahead by 61, behind by 17.</p> <ul> <li><a href="https://urls.greenkeeper.io/mochajs/mocha/commit/d0f04e994f3e78939f0a947ef064881c7fec5188"><code>d0f04e9</code></a> <code>Release v7.0.1</code></li> <li><a href="https://urls.greenkeeper.io/mochajs/mocha/commit/2277958e32f48bed10f0cb2ceaf01e7b8045af35"><code>2277958</code></a> <code>update CHANGELOG for v7.0.1 [ci skip]</code></li> <li><a href="https://urls.greenkeeper.io/mochajs/mocha/commit/0be3f78491bbbcdc4dcea660ee7bfd557a225d9c"><code>0be3f78</code></a> <code>Fix exception when skipping tests programmatically (#4165)</code></li> <li><a href="https://urls.greenkeeper.io/mochajs/mocha/commit/c0f1d1456dbc068f0552a5ceaed0d9b95e940ce1"><code>c0f1d14</code></a> <code>uncaughtException: fix recovery when current test is still running (#4150)</code></li> <li><a href="https://urls.greenkeeper.io/mochajs/mocha/commit/9c10adab3340abd8baff147cb595256234d88de6"><code>9c10ada</code></a> <code>Fix backwards compability break for reporterOptions</code></li> <li><a href="https://urls.greenkeeper.io/mochajs/mocha/commit/a24683fd9273d0896a177d70c2368ada4f2c4882"><code>a24683f</code></a> <code>Throw a descriptive error when a non-function is given to a runnable (#4133)</code></li> <li><a href="https://urls.greenkeeper.io/mochajs/mocha/commit/579fd09db39a55b44c1f553df05c918bc62867be"><code>579fd09</code></a> <code>update copyright & trademark notices per OJSF; closes #4145</code></li> <li><a href="https://urls.greenkeeper.io/mochajs/mocha/commit/0e1ccbb915ba8c2f73134af5bebd357f3329b9b7"><code>0e1ccbb</code></a> <code>Fix leaking global 'uncaughtException' handler (#4147)</code></li> <li><a href="https://urls.greenkeeper.io/mochajs/mocha/commit/7d78f209c6a4f8ef4eba584fe10515fd3901830e"><code>7d78f20</code></a> <code>Broken links in docs (#4140)</code></li> <li><a href="https://urls.greenkeeper.io/mochajs/mocha/commit/69339a3e7710a790b106b922ce53fcb87772f689"><code>69339a3</code></a> <code>Release v7.0.0</code></li> <li><a href="https://urls.greenkeeper.io/mochajs/mocha/commit/99e085f1fb924deeb87290adb476f4e375e72392"><code>99e085f</code></a> <code>update CHANGELOG for v7.0.0 [ci skip]</code></li> <li><a href="https://urls.greenkeeper.io/mochajs/mocha/commit/35cf39b14eae6dbd1fb364c215093095d5912ebc"><code>35cf39b</code></a> <code>Add reporter alias names to docs (#4127)</code></li> <li><a href="https://urls.greenkeeper.io/mochajs/mocha/commit/3bd2d28bfc99b5f71efc9ef332ae9ac4a5d90de8"><code>3bd2d28</code></a> <code>Forbid this.skip() within afterAll hooks (#4136)</code></li> <li><a href="https://urls.greenkeeper.io/mochajs/mocha/commit/24c22bef53e4539dd17b0d3b2123953bb8a3a883"><code>24c22be</code></a> <code>Fix hook pattern of this.skip() in beforeEach hooks (#3741)</code></li> <li><a href="https://urls.greenkeeper.io/mochajs/mocha/commit/1412dc80d87d0479f7f1d60202da2b33c90eb939"><code>1412dc8</code></a> <code>XUnit reporter should handle exceptions during diff generation (#4068)</code></li> </ul> <p>There are 61 commits in total.</p> <p>See the <a href="https://urls.greenkeeper.io/mochajs/mocha/compare/843a322f9e7724e4a75ceff1920caf24da94bdf2...d0f04e994f3e78939f0a947ef064881c7fec5188">full diff</a></p> </details>


<details> <summary>FAQ and help</summary>

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper. </details>


Your Greenkeeper bot :palm_tree:

+142 -15

4 comments

2 changed files

greenkeeper[bot]

pr closed time in 14 days

delete branch Download/anylogger-debug

delete branch : greenkeeper/sinon-9.0.0

delete time in 14 days

PR closed Download/anylogger-debug

Update sinon to the latest version 🚀 greenkeeper

The devDependency sinon was updated from 8.1.1 to 9.0.0.

This version is not covered by your current version range.

If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.


Publisher: mrgnrdrck License: BSD-3-Clause

Find out more about this release.


<details> <summary>FAQ and help</summary>

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper. </details>


Your Greenkeeper bot :palm_tree:

+71 -35

2 comments

2 changed files

greenkeeper[bot]

pr closed time in 14 days

push eventDownload/anylogger-debug

Stijn de Witt

commit sha 2f9b08bd16638a239967f1d02156cd3d5c0812f3

1.0.0 Build with rollup, use anylogger 1.x, update deps

view details

push time in 14 days

created tagDownload/anylogger

tag1.0.2

Get a logger. Any logger.

created time in 14 days

release Download/anylogger

1.0.2

released time in 14 days

push eventDownload/anylogger

Stijn de Witt

commit sha c1f0a4a2ce8b8bf38b0675d76519d1dbf2e31191

File paths starting with . in `files` key in package.json caused empty bundle?

view details

push time in 14 days

issue commentDownload/ulog

'Cannot redefine property: name' error on android KitKat WebView

@johnd0e Latest beta version of ulog I basically created just for you: https://github.com/Download/ulog/commit/423ce1c6dc1c8c2a2ecae13e6dbb99308e301eba#diff-376aee9128f6965dd8f0dafec44349b6R49 It is on NPM as 2.0.0-beta.7: https://www.npmjs.com/package/ulog/v/2.0.0-beta.7

Could you be a doll and try it out for me and let me know whether it fixed your issue?

johnd0e

comment created time in 14 days

issue commentDownload/ulog

License motivations - CC-BY

It is the only license I could find that is totally free but does require attribution. I don't think the 'Not recommended for software' remark was there when I chose it all those years ago... I have been reconsidering though... my latest project, anylogger is MIT licensed. Can you give your thoughts? Would MIT be better?

Vadorequest

comment created time in 14 days

created tagDownload/anylogger

tag1.0.1

Get a logger. Any logger.

created time in 14 days

release Download/anylogger

1.0.1

released time in 14 days

release Download/anylogger

1.0.0

released time in 14 days

created tagDownload/anylogger

tag1.0.0

Get a logger. Any logger.

created time in 14 days

push eventDownload/anylogger

Stijn de Witt

commit sha 6ba38429fd765be45becf2a53850e616d4f48fd7

1.0.1: Updated build, test & deps * Make sure we correctly export anylogger to a global for the browser build * Make the browser build an IIFE (which is smaller), leave it to consumers to create an AMD build themselves if needed * Update the tests to use the CJS module * Update dependencies to their latest versions

view details

push time in 14 days

issue commentvercel/next.js

Feature request - Built-in universal logger

Hi guys, I'm the author of ulog.

I wrote ulog an eon ago to be tiny and powerful and work everywhere. And 1.x is pretty much succeeding at that. However I found that I had 2 problems with it:

  • Even though I made ulog as small as I could get it, I still did not want to use it in libraries / frameworks as a dependency because I don't want to tie consumers to my choice of logging library
  • I wanted more features such as formatting, which made the previous point even worse. I certainly don't want to tie consumers of a library I am making to my choice of big logging library

I came up with this solution:

anylogger

The logger for libraries

When we want to do logging from a library, we don't want to force the choice of logging framework on the application developer. Instead, we want to use whatever logging framework the application developer selected. anylogger let's you do just that.

The idea here is a logging facade. It's like slf4j in the Java world. A facade with a generic interface that you back with the logging library of your choice.

Currently I am working to get the following working:

It's work in progress... I'm doing it on my own atm... And I don't always have time to work on it.

However I really do feel a logging facade is what the Javascript world needs so framework and library vendors can just support any logger easily.

Vadorequest

comment created time in 14 days

issue commentDownload/ulog

Usage with Next.js - Tons of logs (circular config?)

Sorry for your inconvenience... I am working on a big migration for ulog and life intervened. I won't be looking into this issue before I finally managed to publish v2.0.0

Vadorequest

comment created time in 14 days

issue commentDownload/memorystorage

Invalid exports in package.json

PR welcome!

matthemsteger

comment created time in 14 days

issue closedDownload/anylogger

anylogger@0.22.0 is not published to NPM

Can you please make an NPM release?

OT: I'm (err, I was) a huge fan of AnyEvent in the Perl ecosystem. Were you inspired by it?

closed time in 17 days

michaelfig

issue commentDownload/anylogger

anylogger@0.22.0 is not published to NPM

I Published 1.0.0 instead

michaelfig

comment created time in 17 days

push eventDownload/anylogger

Stijn de Witt

commit sha 148a373f37baa4bbef8eb3751aac57b65b10f26a

Polished the docs

view details

Stijn de Witt

commit sha a322bb70f961fea3a14d7356174b8323c8ce02ca

anylogger works on all node versions but mocha only runs on latest node

view details

push time in 17 days

delete branch Download/anylogger

delete branch : greenkeeper/cross-env-7.0.0

delete time in 17 days

PR closed Download/anylogger

Update cross-env to the latest version 🚀 greenkeeper

The devDependency cross-env was updated from 6.0.3 to 7.0.0.

This version is not covered by your current version range.

If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.


Publisher: kentcdodds License: MIT

<details> <summary>Release Notes for v7.0.0</summary>

<h1><a href="https://urls.greenkeeper.io/kentcdodds/cross-env/compare/v6.0.3...v7.0.0">7.0.0</a> (2020-01-25)</h1> <h3>Features</h3> <ul> <li>update dependencies (<a href="https://urls.greenkeeper.io/kentcdodds/cross-env/issues/223" data-hovercard-type="pull_request" data-hovercard-url="/kentcdodds/cross-env/pull/223/hovercard">#223</a>) (<a href="https://urls.greenkeeper.io/kentcdodds/cross-env/commit/4ec6f4009d05c571d1737306cb787499d511048b">4ec6f40</a>)</li> </ul> <h3>BREAKING CHANGES</h3> <ul> <li>Drop Node 8 support</li> </ul> </details>

<details> <summary>Commits</summary> <p>The new version differs by 1 commits.</p> <ul> <li><a href="https://urls.greenkeeper.io/kentcdodds/cross-env/commit/4ec6f4009d05c571d1737306cb787499d511048b"><code>4ec6f40</code></a> <code>feat: update dependencies (#223)</code></li> </ul> <p>See the <a href="https://urls.greenkeeper.io/kentcdodds/cross-env/compare/67f21c32543af0ecdbaf2508d620d81d3307a433...4ec6f4009d05c571d1737306cb787499d511048b">full diff</a></p> </details>


<details> <summary>FAQ and help</summary>

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper. </details>


Your Greenkeeper bot :palm_tree:

+35 -26

2 comments

2 changed files

greenkeeper[bot]

pr closed time in 17 days

delete branch Download/anylogger

delete branch : greenkeeper/mocha-7.0.1

delete time in 17 days

PR closed Download/anylogger

Update mocha to the latest version 🚀 greenkeeper

The devDependency mocha was updated from 6.2.2 to 7.0.1.

This version is not covered by your current version range.

If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.


Publisher: juergba License: MIT

<details> <summary>Release Notes for v7.0.1</summary>

<h1>7.0.1 / 2020-01-25</h1> <h2><g-emoji class="g-emoji" alias="bug" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f41b.png">🐛</g-emoji> Fixes</h2> <ul> <li><a href="https://urls.greenkeeper.io/mochajs/mocha/issues/4165" data-hovercard-type="pull_request" data-hovercard-url="/mochajs/mocha/pull/4165/hovercard">#4165</a>: Fix exception when skipping tests programmatically (<a href="https://urls.greenkeeper.io/juergba"><strong>@juergba</strong></a>)</li> <li><a href="https://urls.greenkeeper.io/mochajs/mocha/issues/4153" data-hovercard-type="pull_request" data-hovercard-url="/mochajs/mocha/pull/4153/hovercard">#4153</a>: Restore backwards compatibility for <code>reporterOptions</code> (<a href="https://urls.greenkeeper.io/holm"><strong>@holm</strong></a>)</li> <li><a href="https://urls.greenkeeper.io/mochajs/mocha/issues/4150" data-hovercard-type="pull_request" data-hovercard-url="/mochajs/mocha/pull/4150/hovercard">#4150</a>: Fix recovery of an open test upon uncaught exception (<a href="https://urls.greenkeeper.io/juergba"><strong>@juergba</strong></a>)</li> <li><a href="https://urls.greenkeeper.io/mochajs/mocha/issues/4147" data-hovercard-type="pull_request" data-hovercard-url="/mochajs/mocha/pull/4147/hovercard">#4147</a>: Fix regression of leaking uncaught exception handler (<a href="https://urls.greenkeeper.io/juergba"><strong>@juergba</strong></a>)</li> </ul> <h2><g-emoji class="g-emoji" alias="book" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4d6.png">📖</g-emoji> Documentation</h2> <ul> <li><a href="https://urls.greenkeeper.io/mochajs/mocha/issues/4146" data-hovercard-type="pull_request" data-hovercard-url="/mochajs/mocha/pull/4146/hovercard">#4146</a>: Update copyright & trademark notices per OJSF (<a href="https://urls.greenkeeper.io/boneskull"><strong>@boneskull</strong></a>)</li> <li><a href="https://urls.greenkeeper.io/mochajs/mocha/issues/4140" data-hovercard-type="pull_request" data-hovercard-url="/mochajs/mocha/pull/4140/hovercard">#4140</a>: Fix broken links (<a href="https://urls.greenkeeper.io/KyoungWan"><strong>@KyoungWan</strong></a>)</li> </ul> <h2><g-emoji class="g-emoji" alias="nut_and_bolt" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f529.png">🔩</g-emoji> Other</h2> <ul> <li><a href="https://urls.greenkeeper.io/mochajs/mocha/issues/4133" data-hovercard-type="pull_request" data-hovercard-url="/mochajs/mocha/pull/4133/hovercard">#4133</a>: Print more descriptive error message (<a href="https://urls.greenkeeper.io/Zirak"><strong>@Zirak</strong></a>)</li> </ul> </details>

<details> <summary>Commits</summary> <p>The new version differs by 61 commits ahead by 61, behind by 17.</p> <ul> <li><a href="https://urls.greenkeeper.io/mochajs/mocha/commit/d0f04e994f3e78939f0a947ef064881c7fec5188"><code>d0f04e9</code></a> <code>Release v7.0.1</code></li> <li><a href="https://urls.greenkeeper.io/mochajs/mocha/commit/2277958e32f48bed10f0cb2ceaf01e7b8045af35"><code>2277958</code></a> <code>update CHANGELOG for v7.0.1 [ci skip]</code></li> <li><a href="https://urls.greenkeeper.io/mochajs/mocha/commit/0be3f78491bbbcdc4dcea660ee7bfd557a225d9c"><code>0be3f78</code></a> <code>Fix exception when skipping tests programmatically (#4165)</code></li> <li><a href="https://urls.greenkeeper.io/mochajs/mocha/commit/c0f1d1456dbc068f0552a5ceaed0d9b95e940ce1"><code>c0f1d14</code></a> <code>uncaughtException: fix recovery when current test is still running (#4150)</code></li> <li><a href="https://urls.greenkeeper.io/mochajs/mocha/commit/9c10adab3340abd8baff147cb595256234d88de6"><code>9c10ada</code></a> <code>Fix backwards compability break for reporterOptions</code></li> <li><a href="https://urls.greenkeeper.io/mochajs/mocha/commit/a24683fd9273d0896a177d70c2368ada4f2c4882"><code>a24683f</code></a> <code>Throw a descriptive error when a non-function is given to a runnable (#4133)</code></li> <li><a href="https://urls.greenkeeper.io/mochajs/mocha/commit/579fd09db39a55b44c1f553df05c918bc62867be"><code>579fd09</code></a> <code>update copyright & trademark notices per OJSF; closes #4145</code></li> <li><a href="https://urls.greenkeeper.io/mochajs/mocha/commit/0e1ccbb915ba8c2f73134af5bebd357f3329b9b7"><code>0e1ccbb</code></a> <code>Fix leaking global 'uncaughtException' handler (#4147)</code></li> <li><a href="https://urls.greenkeeper.io/mochajs/mocha/commit/7d78f209c6a4f8ef4eba584fe10515fd3901830e"><code>7d78f20</code></a> <code>Broken links in docs (#4140)</code></li> <li><a href="https://urls.greenkeeper.io/mochajs/mocha/commit/69339a3e7710a790b106b922ce53fcb87772f689"><code>69339a3</code></a> <code>Release v7.0.0</code></li> <li><a href="https://urls.greenkeeper.io/mochajs/mocha/commit/99e085f1fb924deeb87290adb476f4e375e72392"><code>99e085f</code></a> <code>update CHANGELOG for v7.0.0 [ci skip]</code></li> <li><a href="https://urls.greenkeeper.io/mochajs/mocha/commit/35cf39b14eae6dbd1fb364c215093095d5912ebc"><code>35cf39b</code></a> <code>Add reporter alias names to docs (#4127)</code></li> <li><a href="https://urls.greenkeeper.io/mochajs/mocha/commit/3bd2d28bfc99b5f71efc9ef332ae9ac4a5d90de8"><code>3bd2d28</code></a> <code>Forbid this.skip() within afterAll hooks (#4136)</code></li> <li><a href="https://urls.greenkeeper.io/mochajs/mocha/commit/24c22bef53e4539dd17b0d3b2123953bb8a3a883"><code>24c22be</code></a> <code>Fix hook pattern of this.skip() in beforeEach hooks (#3741)</code></li> <li><a href="https://urls.greenkeeper.io/mochajs/mocha/commit/1412dc80d87d0479f7f1d60202da2b33c90eb939"><code>1412dc8</code></a> <code>XUnit reporter should handle exceptions during diff generation (#4068)</code></li> </ul> <p>There are 61 commits in total.</p> <p>See the <a href="https://urls.greenkeeper.io/mochajs/mocha/compare/843a322f9e7724e4a75ceff1920caf24da94bdf2...d0f04e994f3e78939f0a947ef064881c7fec5188">full diff</a></p> </details>


<details> <summary>FAQ and help</summary>

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper. </details>


Your Greenkeeper bot :palm_tree:

+142 -15

4 comments

2 changed files

greenkeeper[bot]

pr closed time in 17 days

delete branch Download/anylogger

delete branch : greenkeeper/sinon-9.0.0

delete time in 17 days

PR closed Download/anylogger

Update sinon to the latest version 🚀 greenkeeper

The devDependency sinon was updated from 8.1.1 to 9.0.0.

This version is not covered by your current version range.

If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.


Publisher: mrgnrdrck License: BSD-3-Clause

Find out more about this release.


<details> <summary>FAQ and help</summary>

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper. </details>


Your Greenkeeper bot :palm_tree:

+73 -43

2 comments

2 changed files

greenkeeper[bot]

pr closed time in 17 days

push eventDownload/anylogger

Stijn de Witt

commit sha b2560c432c868eb5307a3261a7aed34c3fdf44cc

Fixed merge mistake

view details

push time in 17 days

push eventDownload/anylogger

Stijn de Witt

commit sha 63698f63d4b3496d864757905489593ca3eedf4a

Added UMD build Cleaned up code and docs

view details

Stijn de Witt

commit sha 8fce1c7d7b87c3e59f8a564335f2bd121150b3c9

Merge branch 'master' of github.com:Download/anylogger # Conflicts: # package.json

view details

push time in 17 days

more