ts-simple-logger

A simple logger for TypeScript based projects

Usage no npm install needed!

<script type="module">
  import tsSimpleLogger from 'https://cdn.skypack.dev/ts-simple-logger';
</script>

README

ts-logger

Simple logger written in TypeScript for Node.js

Build Status codecov TypeScript Coverage

Usage

import { Logger } from '@asoriano/ts-logger;

const logger = new Logger({
  path: './path',
  filename: 'name.log',
});

Options

Name Type Example Is optional
path string './some-relative-path' false
filename string 'app-name.log' false
loggerLogFile string '/some-path/logger.log' true

Test

Just run npm test.

Contributing

Any feedback is always welcome so please just raise an issue and will reply ASAP. Feel free to create PR if you have the time.