All Projects β†’ khmm12 β†’ knex-tiny-logger

khmm12 / knex-tiny-logger

Licence: MIT license
Zero config queries logger for knex

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects

Projects that are alternatives of or similar to knex-tiny-logger

Cocoadebug
iOS Debugging Tool πŸš€
Stars: ✭ 3,769 (+15604.17%)
Mutual labels:  logger, debug
Ios Sdk
AppSpector is a debugging service for mobile apps
Stars: ✭ 56 (+133.33%)
Mutual labels:  logger, debug
debug.js
Debugger of JavaScript, by JavaScript, for JavaScript
Stars: ✭ 19 (-20.83%)
Mutual labels:  logger, debug
pino-caller
🌲 Include call site of pino log messages
Stars: ✭ 35 (+45.83%)
Mutual labels:  logger, debug
Logcat
Android ζ—₯εΏ—ζ‰“ε°ζ‘†ζžΆοΌŒεœ¨ζ‰‹ζœΊδΈŠε―δ»₯η›΄ζŽ₯ηœ‹εˆ° Logcat ζ—₯志啦
Stars: ✭ 189 (+687.5%)
Mutual labels:  logger, debug
React Native Logs
Performance-aware simple logger for React-Native with namespaces, custom levels and custom transports (colored console, file writing, etc.)
Stars: ✭ 84 (+250%)
Mutual labels:  logger, debug
Tracer
A powerful and customizable logging library for node.js
Stars: ✭ 1,081 (+4404.17%)
Mutual labels:  logger, debug
GoogleCloudLogging
Swift (Darwin) library for logging application events in Google Cloud.
Stars: ✭ 24 (+0%)
Mutual labels:  logger, debug
Acho
The Hackable Log
Stars: ✭ 189 (+687.5%)
Mutual labels:  logger, debug
Android Remote Debugger
A library for remote logging, database debugging, shared preferences and network requests
Stars: ✭ 132 (+450%)
Mutual labels:  logger, debug
winston-dev-console
Winston@3 console format aimed to improve development UX
Stars: ✭ 88 (+266.67%)
Mutual labels:  logger, debug
android-sdk
AppSpector is a debugging service for mobile apps
Stars: ✭ 39 (+62.5%)
Mutual labels:  logger, debug
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 (+350%)
Mutual labels:  logger
sdebug
Xdebug β€” Step Debugger and Debugging Aid for PHP
Stars: ✭ 263 (+995.83%)
Mutual labels:  debug
logger
All you need to log with Bref on AWS Lambda.
Stars: ✭ 30 (+25%)
Mutual labels:  logger
object-gui
Object GUI - Javascript Object GUI Editor
Stars: ✭ 51 (+112.5%)
Mutual labels:  debug
BLogger
An easy to use modern C++14/17 async cross-platform logger which supports custom formatting/patterns, colored output, Unicode, file logging, log rotation & more!
Stars: ✭ 23 (-4.17%)
Mutual labels:  logger
ptkdev-logger
πŸ¦’ Beautiful Logger for Node.js: the best alternative to the console.log statement
Stars: ✭ 117 (+387.5%)
Mutual labels:  logger
missionlog
πŸš€ lightweight logging β€’ supports level based filtering and tagging β€’ weighs in at around 500 bytes
Stars: ✭ 19 (-20.83%)
Mutual labels:  logger
puts debuggerer
Ruby library for improved puts debugging, automatically displaying bonus useful information such as source line number and source code.
Stars: ✭ 82 (+241.67%)
Mutual labels:  logger

knex-tiny-logger

Zero config queries logger for knex

Usage

Install the package:

$ yarn add knex-tiny-logger

Apply knex-tiny-logger to knex instance:

import createKnex from 'knex'
import knexTinyLogger from 'knex-tiny-logger'

const knexOptions = {} // Your knex config
const knex = createKnex(knexOptions)
knexTinyLogger(knex)

// alternative
// knex-tiny-logger returns knex instance
// so you can do like this
const knex = knexTinyLogger(createKnex(knexOptions))

Advanced usage

By default knex-tiny-logger uses console.log, but you can specify any logger which your prefer:

import createKnex from 'knex'
import knexTinyLogger from 'knex-tiny-logger'
import initDebug from 'debug'

const awesomeLogger = initDebug('my-project:knex')
const knexOptions = {} // Your knex config
const knex = createKnex(knexOptions)
knexTinyLogger(knex, { logger: awesomeLogger })

Also you can disable bindings:

knexTinyLogger(knex, { bindings: false })

License

MIT

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].