# @raghava_rdy/rlog

> it's a customised logging format

Latest version **1.0.4** (published 2023-04-12) · ISC license · 0 weekly downloads

## Install

```sh
npm install @raghava_rdy/rlog
pnpm add @raghava_rdy/rlog
yarn add @raghava_rdy/rlog
bun add @raghava_rdy/rlog
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2023-04-12 |
| First published | 2023-03-13 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Raghava Reddy |
| Maintainers | raghava_rdy |
| Keywords | rlog, logging, logger, s3, logs |

## Links

- npm: https://www.npmjs.com/package/@raghava_rdy/rlog
- Repository: https://github.com/raghavared/rlog
- Homepage: https://github.com/raghavared/rlog#readme
- Issues: https://github.com/raghavared/rlog/issues
- npm.io page: https://npm.io/package/@raghava_rdy/rlog

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [@luma.gl/experimental](https://npm.io/package/@luma.gl/experimental.md) — 77.1K weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads

## Recent versions

- 1.0.4 (latest) — 2023-04-12
- 1.0.3 — 2023-04-12
- 1.0.2 — 2023-04-01
- 1.0.1 — 2023-04-01
- 1.0.0 — 2023-03-13

## README

# Logger for JavaScript

[![NPM version](https://img.shields.io/npm/v/aws-sdk.svg)](https://www.npmjs.com/package/@raghava_rdy/rlog)

## Version 1.0.2 Now Available
The [version 1.0.2](https://github.com/raghavared/rlog) of the rLog JavaScript is generally available.

### Table of Contents:
* [Getting Started](#getting-Started)
* [How to Install](#install-section)
* [Contributing](#contributing)

### Getting Started
This logger helps you to maintain daily logs and update them to the preferred S3 bucket.

### How To Install
```sh
npm install @raghava_rdy/rlog
```

#### In Node.js

The preferred way to install the rLog for Node.js is to use the [npm](http://npmjs.org) package manager for Node.js. Simply type the following into a terminal window:
```sh 
npm install @raghava_rdy/rlog
```

Then within your application, you can reference the rLog with the following:

```javascript
const { rLog , syncLogsWithS3 } = require('@raghava_rdy/rlog');
```
To update the logs to S3 on daliy basis need to initialise the ```syncLogsWithS3()``` so that it can upload the data to S3 Bucket.
```javascript
syncLogsWithS3({
    accessKey: "Access key of your s3",
    secretKey: "Secret key of your s3 ", 
    bucketName: "Name of your bucket to push the logs", 
    applicationName: "Name of the application you are running"
})
```
How to use the rLog to console the output ```rLog()```
```javascript
const data_to_print = "hello welcome, here is the sample date to print"
rLog(data_to_print)
rLog(data_to_print)
rLog(data_to_print)
```
#### sample output
`2023-04-01T10:06:12.794Z :: hello welcome, here is the sample date to print`

`2023-04-01T10:06:12.794Z :: hello welcome, here is the sample date to print`

`2023-04-01T10:06:12.794Z :: hello welcome, here is the sample date to print`


### Contributing
We welcome community contributions and pull requests. See [watch](https://github.com/raghavared/rlog) for information on how to set up a development environment.

### License
ISC

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