# skillfolio-common-service

> A shared library providing common services and utilities for the Skillfolio platform, including an advanced logger service integrated with Elasticsearch.

Latest version **0.0.2** (published 2024-02-04) · UNLICENSED license · 0 weekly downloads

## Install

```sh
npm install skillfolio-common-service
pnpm add skillfolio-common-service
yarn add skillfolio-common-service
bun add skillfolio-common-service
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2024-02-04 |
| First published | 2024-02-04 |
| Weekly downloads | 0 |
| License | UNLICENSED |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 9 |
| Unpacked size | 147 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Emilio Cuba |
| Maintainers | emiliocuba |

## Links

- npm: https://www.npmjs.com/package/skillfolio-common-service
- npm.io page: https://npm.io/package/skillfolio-common-service

## Dependencies (9)

- [rxjs](https://npm.io/package/rxjs.md) ^7.8.1
- [winston](https://npm.io/package/winston.md) ^3.11.0
- [@nestjs/core](https://npm.io/package/@nestjs/core.md) ^10.0.0
- [@nestjs/common](https://npm.io/package/@nestjs/common.md) ^10.0.0
- [@nestjs/config](https://npm.io/package/@nestjs/config.md) ^3.1.1
- [reflect-metadata](https://npm.io/package/reflect-metadata.md) ^0.1.13
- [winston-elasticsearch](https://npm.io/package/winston-elasticsearch.md) ^0.17.4
- [@elastic/elasticsearch](https://npm.io/package/@elastic/elasticsearch.md) ^8.12.0
- [@nestjs/platform-express](https://npm.io/package/@nestjs/platform-express.md) ^10.0.0

## Recent versions

- 0.0.2 (latest) — 2024-02-04
- 0.0.1 — 2024-02-04

## README

# Skillfolio Common Service

The `skillfolio-common-service` is a shared library designed to provide common functionalities across the Skillfolio platform. This library aims to streamline development by offering reusable services and utilities, starting with an enhanced Logger Service and planning to include more services in the future.

## Features

- **Logger Service**: A sophisticated logging service integrated with Elasticsearch, offering dynamic index prefix configuration for better log management and organization.
- **Future Services**: The architecture is designed to easily incorporate and export additional common services as the platform evolves.

## Getting Started

### Installation

To use `skillfolio-common-service` in your project, install it via npm:

```bash
npm install skillfolio-common-service


## How to use the Logger Service
import { LoggerService, LoggerConfig } from 'skillfolio-common-service';

const loggerConfig: LoggerConfig = {
  elasticsearchNode: 'http://localhost:9200',
  elasticsearchUsername: 'your_username',
  elasticsearchPassword: 'your_password',
  indexPrefix: 'your_index_prefix',
};

const loggerService = new LoggerService(loggerConfig);

loggerService.log('This is an info log');
loggerService.error('This is an error log');

---
_Source: https://npm.io/package/skillfolio-common-service · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
