Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xerdi/meteor-logging
Simple logging wrapper of the ostrio:logger packages.
https://github.com/xerdi/meteor-logging
logging meteor
Last synced: about 1 month ago
JSON representation
Simple logging wrapper of the ostrio:logger packages.
- Host: GitHub
- URL: https://github.com/xerdi/meteor-logging
- Owner: Xerdi
- License: gpl-3.0
- Created: 2022-10-13T08:27:47.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-21T11:42:37.000Z (almost 2 years ago)
- Last Synced: 2024-11-11T14:44:41.717Z (3 months ago)
- Topics: logging, meteor
- Language: JavaScript
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Meteor Logging
Simple logging wrapper of the [ostrio:logger](https://github.com/VeliovGroup/Meteor-logger) packages.
## Installation
Add the package to your project:
```shell
meteor add xerdi:logging
```## Usage
The interface is the same as of the `ostrio:logger`'s interface.
```javascript
import log from 'meteor/xerdi:logging';
// OR
import {log} from 'meteor/xerdi:logging';function launchMissile(dir) {
log.info(`Launching missile in direction ${dir}`);
try {
// The code
} catch(err) {
log.error('Failed to launch missile', err);
}
}
```