fela-logger

5.0.24 • Public • Published

fela-logger

npm version npm downloads

Logging tool for Fela. Logs changes to the console, grouped by selector, animation name or font family.

Installation

yarn add fela-logger

You may alternatively use npm i --save fela-logger.

Usage

import { createRenderer } from 'fela'
import logger from 'fela-logger'
 
const renderer = createRenderer({
  enhancers: [ logger() ]
})

Configuration

Options
Option Value Default Description
logCSS (boolean) false logs rendered CSS string
formatCSS (boolean) false logs formatted CSS strings
only together with logCSS: true
Example
import { createRenderer } from 'fela'
import logger from 'fela-logger'
 
const loggerEnhancer = logger({
  logCSS: true,
  formatCSS: true
})
 
const renderer = createRenderer({
  enhancers: [ loggerEnhancer ]
})

Example

License

Fela is licensed under the MIT License.
Documentation is licensed under Creative Common License.
Created with ♥ by @rofrischmann and all the great contributors.

install

npm i fela-logger

Downloadsweekly downloads

202

version

5.0.24

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
Report a vulnerability