All Projects β†’ tiaanduplessis β†’ react-native-log-level

tiaanduplessis / react-native-log-level

Licence: MIT license
Multi level logger for React Native

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to react-native-log-level

apollo-log
A logging extension for the Apollo GraphQL Server
Stars: ✭ 64 (+392.31%)
Mutual labels:  log, logger
logt
πŸ–₯️ A colourful logger for the browser
Stars: ✭ 35 (+169.23%)
Mutual labels:  log, logger
GoogleCloudLogging
Swift (Darwin) library for logging application events in Google Cloud.
Stars: ✭ 24 (+84.62%)
Mutual labels:  log, logger
clue
a extremely high performance log library for android. ι«˜ζ€§θƒ½ηš„Androidζ—₯εΏ—εΊ“
Stars: ✭ 27 (+107.69%)
Mutual labels:  log, logger
missionlog
πŸš€ lightweight logging β€’ supports level based filtering and tagging β€’ weighs in at around 500 bytes
Stars: ✭ 19 (+46.15%)
Mutual labels:  log, logger
log
A simple to use log system, minimalist but with features for debugging and differentiation of messages
Stars: ✭ 21 (+61.54%)
Mutual labels:  log, logger
log
PSR-3 compatible logger
Stars: ✭ 32 (+146.15%)
Mutual labels:  log, logger
LogDNA-Android-Client
Android client for LogDNA
Stars: ✭ 22 (+69.23%)
Mutual labels:  log, logger
Multiplatform-Log
Kotlin Multi Platform Logger, for android an ios : Logcat & print
Stars: ✭ 49 (+276.92%)
Mutual labels:  log, logger
react-native-log-ios
React Native iOS standalone logger
Stars: ✭ 37 (+184.62%)
Mutual labels:  log, logger
spdlog setup
spdlog setup initialization via file configuration for convenience.
Stars: ✭ 68 (+423.08%)
Mutual labels:  log, logger
ptkdev-logger
πŸ¦’ Beautiful Logger for Node.js: the best alternative to the console.log statement
Stars: ✭ 117 (+800%)
Mutual labels:  log, logger
sprout
Golang logging library supporting log retrieval.
Stars: ✭ 85 (+553.85%)
Mutual labels:  log, logger
l
Cross-platform html/io [L]ogger with simple API.
Stars: ✭ 26 (+100%)
Mutual labels:  log, logger
JJSwiftLog
Swift log library for all platform
Stars: ✭ 51 (+292.31%)
Mutual labels:  log, logger
guzzle-log-middleware
A Guzzle middleware to log request and responses automatically
Stars: ✭ 61 (+369.23%)
Mutual labels:  log, logger
log
Aplus Framework Log Library
Stars: ✭ 14 (+7.69%)
Mutual labels:  log, logger
ng-logger
Angular logger service
Stars: ✭ 65 (+400%)
Mutual labels:  log, logger
webpack-log
A logger for the Webpack ecosystem
Stars: ✭ 18 (+38.46%)
Mutual labels:  log, logger
PoShLog
πŸ”© PoShLog is PowerShell cross-platform logging module. It allows you to log structured event data into console, file and much more places easily. It's built upon great C# logging library Serilog - https://serilog.net/
Stars: ✭ 108 (+730.77%)
Mutual labels:  log, logger

react-native-log-level

Multi level logger for React Native



Built with ❀︎ by tiaanduplessis and contributors

Table of Contents

Table of Contents
  • Features
  • Install
  • Usage
  • Contribute
  • License
  • Features

    • Includes 5 different log levels (trace, debug, info, warn & error)
    • Colorized output
    • No external dependencies
    • Returns the value provided for cleaner logging
    • Only logs during development

    Install

    $ npm install react-native-log-level
    # OR
    $ yarn add react-native-log-level

    Usage

    import createLogger from 'react-native-log-level'
    
    // Create a instance
    const log = createLogger({
        level: 'info' // Optionally set the log level. Defaults to 'info'
    })
    
    const obj = {
      foo: 1,
      bar: 2
    }
    
    log.trace('hi')
    log.debug('hi')
    log.info('hi', obj)
    log.warn('hi', obj)
    log.error('hi')

    Since the value logged is returned, cleaner logging is possible

    if (log.info(it === anotherThing)) {
      // Do Stuff
    }

    Contributing

    Contributions are welcome!

    1. Fork it.
    2. Create your feature branch: git checkout -b my-new-feature
    3. Commit your changes: git commit -am 'Add some feature'
    4. Push to the branch: git push origin my-new-feature
    5. Submit a pull request :D

    Or open up a issue.

    License

    Licensed under the MIT License.

    Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].