Git Product home page Git Product logo

nightingale's Introduction

nightingale-monorepo

Logger for browser and node, see [nightingale](packages/nightingale) to get started !

Packages

This repository is a monorepo that we manage using Yarn Workspaces.

Package Version Description
nightingale Logger for browser and node
nightingale-ansi-formatter Nightingale ANSI formatter
nightingale-app-console nightingale default config and logger for app
nightingale-app-react-native React Native and Expo logger for application
nightingale-browser-console Browser console handler for nightingale
nightingale-browser-console-formatter Nightingale Browser console formatter
nightingale-console Console handler for nightingale
nightingale-console-output Nightingale console output
nightingale-debug Nightingale debug
nightingale-formatter Nightingale formatter
nightingale-html-formatter Nightingale HTML formatter
nightingale-json-formatter Nightingale JSON formatter
nightingale-level-names Nightingale level values to level names
nightingale-levels Nightingale levels
nightingale-logger Logger for browser and node
nightingale-markdown-formatter Nightingale Markdown formatter
nightingale-raw-formatter Nightingale Raw formatter
nightingale-react-native-console React Native and Expo handler for nightingale
nightingale-sentry Sentry handler for nightingale
nightingale-slack Slack handler for nightingale
nightingale-string String handler for nightingale
nightingale-types Nightingale types for typescript
nightingale-unit-testing nightingale default config for unit testing
nightingale-web-processor Nightingale web processor
nightingale-winston-adapter Winston adapter handler for nightingale

nightingale's People

Contributors

christophehurpeau avatar dependabot[bot] avatar github-actions[bot] avatar renovate[bot] avatar tilap avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

nightingale's Issues

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: Cannot find preset's package (github>whitesource/merge-confidence:beta)

Question: Formatting output

Hi!

First of all: impressive monorepo!

I just started testing nightingale, and I like it a lot so far! My problem is that I can't seem to find any documentation on how to customize the output. And I'm not too firm with typescript.

So what would I do if I wanted to change the symbols used, for example. Or if I wanted to remove the timestamp?

Help would be much appreciated!

I really appreciate any help you can provide.

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Repository problems

These problems occurred while renovating this repository. View logs.

  • WARN: Use matchDepNames instead of matchPackageNames

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/codeql-analysis.yml
  • actions/checkout v4
  • github/codeql-action v3
  • github/codeql-action v3
.github/workflows/gh-pages.yml
  • actions/checkout v4
  • actions/setup-node v4
  • peaceiris/actions-gh-pages v4
.github/workflows/publish.yml
  • actions/checkout v4
  • actions/setup-node v4
.github/workflows/push-renovate-pob_root.yml
  • actions/checkout v4
.github/workflows/push-renovate-prettier.yml
  • actions/checkout v4
.github/workflows/push.yml
  • actions/checkout v4
  • actions/setup-node v4
  • actions/checkout v4
  • actions/setup-node v4
  • actions/checkout v4
  • actions/setup-node v4
  • actions/checkout v4
  • actions/setup-node v4
  • codecov/codecov-action v4
npm
package.json
  • @babel/core 7.24.5
  • @pob/commitlint-config 6.4.0
  • @pob/eslint-config 56.0.0
  • @pob/eslint-config-typescript 56.0.0
  • @pob/root 12.1.1
  • @types/jest 29.5.12
  • @types/node 20.14.2
  • check-package-dependencies 7.1.2
  • eslint 8.57.0
  • jest 29.7.0
  • pob-babel 40.0.0
  • typedoc 0.25.13
  • typescript 5.4.5
  • node >=18.12.0
  • yarn 4.3.0
packages/nightingale-ansi-formatter/package.json
  • ansi-styles ^6.2.1
  • @babel/core 7.24.5
  • @babel/preset-env 7.24.5
  • pob-babel 40.0.0
  • typescript 5.4.5
  • node >=18.12.0
packages/nightingale-app-console/package.json
  • @types/node >=18.0.0
  • @babel/core 7.24.5
  • @babel/preset-env 7.24.5
  • pob-babel 40.0.0
  • typescript 5.4.5
  • node >=18.12.0
packages/nightingale-app-react-native/package.json
  • @babel/core 7.24.5
  • @babel/preset-env 7.24.5
  • pob-babel 40.0.0
  • typescript 5.4.5
  • react-native *
  • react-native-web *
  • node >=18.12.0
packages/nightingale-browser-console-formatter/package.json
  • @babel/core 7.24.5
  • @babel/preset-env 7.24.5
  • pob-babel 40.0.0
  • typescript 5.4.5
  • node >=18.12.0
packages/nightingale-browser-console/package.json
  • @babel/core 7.24.5
  • @babel/preset-env 7.24.5
  • pob-babel 40.0.0
  • typescript 5.4.5
  • node >=18.12.0
packages/nightingale-console-example/package.json
  • @sentry/node 7.110.0
  • @babel/core 7.24.5
  • pob-babel 40.0.0
  • typescript 5.4.5
  • node >=20.9.0
packages/nightingale-console-output/package.json
  • @types/node >=18.0.0
  • @babel/core 7.24.5
  • @babel/preset-env 7.24.5
  • pob-babel 40.0.0
  • typescript 5.4.5
  • node >=18.12.0
packages/nightingale-console/package.json
  • @types/node >=18.0.0
  • @babel/core 7.24.5
  • pob-babel 40.0.0
  • typescript 5.4.5
  • node >=18.12.0
packages/nightingale-debug/package.json
  • @babel/core 7.24.5
  • @babel/preset-env 7.24.5
  • pob-babel 40.0.0
  • typescript 5.4.5
  • node >=18.12.0
packages/nightingale-example/package.json
  • @babel/core 7.24.5
  • pob-babel 40.0.0
  • typescript 5.4.5
  • node >=20.9.0
packages/nightingale-formatter/package.json
  • @babel/core 7.24.5
  • @babel/preset-env 7.24.5
  • pob-babel 40.0.0
  • typescript 5.4.5
  • node >=18.12.0
packages/nightingale-html-formatter/package.json
  • @babel/core 7.24.5
  • @babel/preset-env 7.24.5
  • pob-babel 40.0.0
  • typescript 5.4.5
  • node >=18.12.0
packages/nightingale-json-formatter/package.json
  • @babel/core 7.24.5
  • @babel/preset-env 7.24.5
  • pob-babel 40.0.0
  • typescript 5.4.5
  • node >=18.12.0
packages/nightingale-level-names/package.json
  • typescript 5.4.5
  • node >=18.12.0
packages/nightingale-levels/package.json
  • @babel/core 7.24.5
  • @babel/preset-env 7.24.5
  • pob-babel 40.0.0
  • typescript 5.4.5
  • node >=18.12.0
packages/nightingale-logger/package.json
  • @types/node >=18.0.0
  • @babel/core 7.24.5
  • @babel/preset-env 7.24.5
  • pob-babel 40.0.0
  • typescript 5.4.5
  • node >=18.12.0
packages/nightingale-markdown-formatter/package.json
  • @babel/core 7.24.5
  • @babel/preset-env 7.24.5
  • pob-babel 40.0.0
  • typescript 5.4.5
  • node >=18.12.0
packages/nightingale-raw-formatter/package.json
  • @babel/core 7.24.5
  • @babel/preset-env 7.24.5
  • pob-babel 40.0.0
  • typescript 5.4.5
  • node >=18.12.0
packages/nightingale-react-native-console/package.json
  • @babel/core 7.24.5
  • @babel/preset-env 7.24.5
  • pob-babel 40.0.0
  • react 18.2.0
  • react-native 0.72.6
  • typescript 5.4.5
  • react-native *
  • node >=18.12.0
packages/nightingale-sentry/package.json
  • @sentry/core ^7.19.0
  • @sentry/types ^7.19.0
  • @babel/core 7.24.5
  • @babel/preset-env 7.24.5
  • pob-babel 40.0.0
  • typescript 5.4.5
  • node >=18.12.0
packages/nightingale-slack/package.json
  • @babel/core 7.24.5
  • @types/node 20.14.2
  • pob-babel 40.0.0
  • typescript 5.4.5
  • node >=18.12.0
packages/nightingale-string/package.json
  • @babel/core 7.24.5
  • pob-babel 40.0.0
  • typescript 5.4.5
  • node >=18.12.0
packages/nightingale-types/package.json
  • @babel/core 7.24.5
  • @babel/preset-env 7.24.5
  • pob-babel 40.0.0
  • typescript 5.4.5
  • node >=18.12.0
packages/nightingale-unit-testing/package.json
  • @types/node >=18.0.0
  • @babel/core 7.24.5
  • pob-babel 40.0.0
  • typescript 5.4.5
  • node >=18.12.0
packages/nightingale-web-processor/package.json
  • @types/node >=18.0.0
  • @babel/core 7.24.5
  • pob-babel 40.0.0
  • typescript 5.4.5
  • node >=18.12.0
packages/nightingale-winston-adapter/package.json
  • @babel/core 7.24.5
  • @babel/preset-env 7.24.5
  • pob-babel 40.0.0
  • typescript 5.4.5
  • node >=18.12.0
packages/nightingale/package.json
  • @types/node >=18.0.0
  • @babel/core 7.24.5
  • @babel/preset-env 7.24.5
  • pob-babel 40.0.0
  • typescript 5.4.5
  • node >=18.12.0

  • Check this box to trigger a request for Renovate to run again on this repository

Stack traces show LogSerialization.js in React Native in console

Follow up from #241 where I noticed that nightingale logs the stack trace correctly in React Native Debugger, but the stack trace is somehow wrong. Or put differently, the text output I see in the console is correct, but the actual stack trace is wrong. I see the actual stack trace in 2 places, in my terminal and as an "expanding option" in the React Native Debugger console. Hopefully the screenshots make it clear.

This shows LogSerialization.js as the source of the error, which is where the log method was called:

Screenshot 2021-05-14 at 12 43 38

While in the React Native Debugger console, I see the correct stack trace:

image

Note that this log message has a > option at the left which I can click to expand the attached stack trace, that expanded stack trace looks like this:

image

I don't know enough about stack traces and React Native to provide much useful input here. I guess that somehow the text of the log message is being correctly generated from the real stack trace, but somehow by the time the console.*() call has been shipped over the wire from the device to the host computer, the stack has been borked.

Perhaps this is "good enough". At least it's very helpful to see the actual stack trace in the log message. If memory serves, I often see meaningless stack traces when exceptions are thrown without nightingale in the chain. Not sure if this issue is useful or not, just wanted to share in case it's helpful, feel free to close without comment.

Colour console issues in React Native

Using the nightingale-app-react-native package in our expo project, I see the following in my expo console (running in my terminal, iTerm2):

image

But in the React Native Debugger, connected to my app, I see this:

Screenshot 2021-05-14 at 11 41 56

I think there's something going on with ansi colour codes or such that is being relayed to the remote console and somehow not quite working when it's displayed there. Unfortunately I don't know enough about the React Native console to be able to offer any more useful feedback.

Edit: Same on both iOS & Android for me.

Backward compatibility & doc

Before, nightingale exports Levels. It seems it changes over time to levels.

➡️ Documentation need to be updated.
➡️ What about backward compatibility ?

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on all branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.

Since we didn’t receive a CI status on the greenkeeper/initial branch, it’s possible that you don’t have CI set up yet. We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.

If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/.

Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please delete the greenkeeper/initial branch in this repository, and then remove and re-add this repository to the Greenkeeper App’s white list on Github. You'll find this list on your repo or organization’s settings page, under Installed GitHub Apps.

Support async handlers

Support for async handler is missing, specifically to wait for them to finish (or timeout) before exiting

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.