• Stars
    star
    160
  • Rank 234,703 (Top 5 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 7 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A logger for Apollo Link that resembles redux-logger

apollo-link-logger

A logger for Apollo Link that resembles redux-logger

Semantically Released Build Status Code Coverage version downloads Styled with Prettier AirBnB style guide

MIT License All Contributors PRs Welcome Commitizen friendly Code of Conduct

Watch on GitHub Star on GitHub Tweet

Logger for Apollo Link that uses a similar format to redux-logger. Includes performance information.

Installing / Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

A quick introduction of the minimal setup you need to get a hello world up & running.

npm install apollo-link-logger

Prerequisites

  • Apollo Link.

Usage

import apolloLogger from 'apollo-link-logger';

// ...
ApolloLink.from([
  apolloLogger,
  // ...
]);

Screenshots

Query (expanded):

Query Expanded

Mutation (expanded):

Mutation Expanded

Within other logging statements:

Full

Usage with React Native and other restricted environments

We include a polyfilled version of console.groupCollapsed and console.groupEnd that invokes console.log with slightly different prefix to separate output.

Developing

Setting up Dev

Here's a brief intro about what a developer must do in order to start developing the project further:

git clone https://github.com/blackxored/apollo-link-logger
cd apollo-link-logger
yarn

Versioning

We use SemVer for versioning. In addition, it's automatic via semantic-release, and our commit convention.

For the versions available, see the Releases on this repository.

Style guide

We base our code style on AirBnB's style guide and we check with ESLint and automatically format our code with Prettier.

License

This project is licensed under the MIT License - see the license file for details.

Contributing

If you're interested in contributing to this project in any form, please read our Contribution Guidelines.

Code of Conduct

We've adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Contributors

Thanks goes to these people (emoji key):


Adrian Perez

💻 📖 🚇 ⚠️

Adam Savitzky

💻

Ifeanyi Oraelosi

💻

Romario

🐛 🤔

Yuriy Kornienko

💻

Dmitry Shvedov

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

More Repositories

1

git-awards

JavaScript client for Git Awards (http://git-awards.com), discover you GitHub ranking
JavaScript
9
star
2

fontello-rails

Fontello for the Rails Asset Pipeline
Ruby
8
star
3

elasticdev-starter-kit

A toolkit for building universal, serverless, functional, reactive applications
JavaScript
7
star
4

grape-bugsnag

Grape extension to notify API errors to Bugsnag
Ruby
5
star
5

docker-parse-server

Highly configurable Parse Server image with external MongoDB and Cloud Code volume support
JavaScript
5
star
6

generator-bxd-oss

A generator for my open source projects
JavaScript
3
star
7

docker-livestreamer

Livestreamer in a Docker container
3
star
8

prism-oceanic-next

Oceanic Next syntax highlighting theme for Prism and Gatsby
CSS
3
star
9

docker-browsersync

Browsersync Docker image with proper termination, exposed ports and volumes
Shell
2
star
10

graphql-zealot

Utilities for the GraphQL warrior
JavaScript
2
star
11

exist

Ruby client for the Exist API (http://exist.io)
Ruby
2
star
12

whos_dated_who

Unofficial API for http://famousfix.com (formerly http://whosdatedwho.com)
Ruby
2
star
13

conventional-commits-print-scopes

Print all scopes from a conventional-commits repo
JavaScript
2
star
14

commitlint-config-conventional-system

Commitlint config for conventional system extensions for scopes and more
JavaScript
2
star
15

youchat

JavaScript
2
star
16

wisper-mongoid

Subscribe to changes in Mongoid models with Wisper
Ruby
1
star
17

eslint-config

JavaScript
1
star
18

gendertrack

Instructive app showcasing Cordova, ionic, AngularJS, Firebase, etc
JavaScript
1
star
19

belt-fn

OCaml
1
star
20

salary_calc.rb

A simple salary calculator written in Ruby
Ruby
1
star
21

jquery-svg-rails

jQuery SVG plugin adapted for the Rails asset pipeline
Ruby
1
star
22

redis-go-webapp-sample

Golang Redis webapp example http://www.alexedwards.net/blog/working-with-redis
Go
1
star
23

WallabyRNAssets

Objective-C
1
star
24

userspace

Shell
1
star
25

dotfiles

Shell
1
star
26

hardcore-fp

1
star
27

autoevernote

Recipes for Evernote automation
Ruby
1
star