Kvell.js

Kvell.js

  • Docs
  • Database Plugins
  • Github

›Guide

Getting Started

  • Introduction
  • Install
  • kvell.config.js
  • kvell-plugins.js
  • Available Scripts
  • Packages Used In Kvell
  • API

Guide

  • Folder Structure
  • Global
  • Routes and Controllers
  • Models
  • Api Documentation
  • Logging in Kvell
  • Using Custom Ports in Development
  • Debugging in Kvell

Auto-Templating

  • Overview
  • Using generation scripts
  • Using kvell.config.js
Edit

Logging in Kvell

NOTE: This may change in the next versions.

You can use the exported devLog function from kvell-scripts to log any information that you need to persist in a log file called appLog.log.

appLog.log can be found in the logs folder of your application.

const logger = require("kvell-scripts").devLog;

homeRouter.get("/", (req, res, next) => {
  logger.warn("This is a warning");
});

The purpose of devLog is to give you a simple mechanism wherein you can log any critical issue/process of your application in a appLog.log file.

The implementation will probably change for the logger and will try to provide a very robust mechanism for logging in your applications.

Internally, Kvell uses simple-node-logger and exports it's logging functions in the devLog object. Check the package for more details on how you can use devLog.

Last updated on 7/16/2020 by Neeraj Sharma
← Api DocumentationUsing Custom Ports in Development →
Kvell.js
Docs
Getting StartedGuidesDatabase Plugins
Social
kvell
Follow @nsharma1396
Copyright © 2020 Neeraj Sharma.