Skip to content

Commit 319f7a7

Browse files
committed
Update package information
1 parent 67bcf27 commit 319f7a7

File tree

2 files changed

+20
-22
lines changed

2 files changed

+20
-22
lines changed

Diff for: README.md

+19-21
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
# vuejs-logger
1+
# vuejs3-logger
22

3-
> ![](https://travis-ci.org/justinkames/vuejs-logger.svg?branch=master)
4-
[![codecov](https://codecov.io/gh/justinkames/vuejs-logger/branch/master/graph/badge.svg)](https://codecov.io/gh/justinkames/vuejs-logger)
5-
[![npm](https://img.shields.io/npm/dt/vuejs-logger.svg)](https://www.npmjs.com/package/vuejs-logger)
6-
[![npm](https://img.shields.io/npm/dw/vuejs-logger.svg)](https://www.npmjs.com/package/vuejs-logger)
7-
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/justinkames/vuejs-logger/master/LICENSE)
3+
> [![npm](https://img.shields.io/npm/dt/vuejs3-logger.svg)](https://www.npmjs.com/package/vuejs3-logger)
4+
[![npm](https://img.shields.io/npm/dw/vuejs3-logger.svg)](https://www.npmjs.com/package/vuejs3-logger)
5+
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/MarcSchaetz/vuejs3-logger/master/LICENSE)
86

9-
> Provides customizable logging functionality for Vue.js. Compatible with Vue2.
7+
> Provides customizable logging functionality for Vue.js. Compatible with Vue3.
108
119
## Table of Contents
1210

@@ -21,13 +19,11 @@
2119
- [Contribute](#contribute)
2220
- [License](#license)
2321

24-
## Demo
25-
26-
@ [https://codepen.io/justinkames/pen/BwGOVQ](https://codepen.io/justinkames/pen/BwGOVQ)
27-
2822
## Introduction
2923

30-
vuejs-logger is a tool that enables configurable logging for Vue applications. Features include :
24+
vuejs3-logger is a fork of the great [vuejs-logger](https://github.com/justinkames/vuejs-logger) which is availabe for Vue.js 2. However vuejs-logger currently lacks support for Vue.js 3. The features of this library are exactly the same as the current vuejs-logger version 1.5.4.
25+
26+
Features include :
3127

3228
- Output restriction based on selected loglevel.
3329
- Automatically JSON.stringify() the (reactive) properties passed to the logger.
@@ -43,10 +39,10 @@ logLevels : ['debug', 'info', 'warn', 'error', 'fatal']
4339

4440
This project uses [node](http://nodejs.org) and [npm](https://npmjs.com).
4541

46-
https://www.npmjs.com/package/vuejs-logger
42+
https://www.npmjs.com/package/vuejs3-logger
4743

4844
```sh
49-
$ npm install vuejs-logger --save-exact
45+
$ npm install vuejs3-logger --save-exact
5046
```
5147

5248
## Usage
@@ -68,7 +64,9 @@ Below you can find an example of how to use vuejs-logger :
6864
#### Code example
6965

7066
```js
71-
import VueLogger from 'vuejs-logger';
67+
import VueLogger from 'vuejs3-logger';
68+
import { createApp } from 'vue';
69+
7270
const isProduction = process.env.NODE_ENV === 'production';
7371

7472
const options = {
@@ -81,11 +79,11 @@ const options = {
8179
showConsoleColors: true
8280
};
8381

84-
Vue.use(VueLogger, options);
82+
createApp({}).use(VueLogger, options);
8583
```
8684

8785
```js
88-
new Vue({
86+
defineComponent({
8987
data() {
9088
return {
9189
a : 'a',
@@ -104,7 +102,8 @@ new Vue({
104102

105103
function externalFunction() {
106104
// log from external function
107-
Vue.$log.debug('log from function outside component.');
105+
const logger = inject('vuejs3-logger');
106+
logger.debug('log from function outside component.');
108107
}
109108
```
110109

@@ -131,14 +130,13 @@ ignore all calls with less important loglevels in the code.
131130

132131
## Maintainers
133132

134-
[@justinkames](https://github.com/justinkames).
133+
[@MarcSchaetz](https://github.com/MarcSchaetz).
135134

136135
## Contribute
137136

138137
Feel free to dive in! [Open an issue](https://github.com/justinkames/vuejs-logger/issues/new) or submit PRs.
139138

140-
vuejs-logger follows the [Contributor Covenant](http://contributor-covenant.org/version/1/3/0/) Code of Conduct.
141139

142140
## License
143141

144-
[MIT](LICENSE) © Justin Kames
142+
[MIT](LICENSE) © Marc Schätz

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"license": "MIT",
44
"author": "Marc Schätz",
55
"description": "vuejs3-logger, provides customizable logging functionality for Vue.js3. Forked from the gread vuejs-logger library (https://github.com/justinkames/vuejs-logger)",
6-
"version": "1.0.0",
6+
"version": "1.0.0-beta2",
77
"repository": {
88
"type": "git",
99
"url": "https://github.com/MarcSchaetz/vuejs3-logger.git"

0 commit comments

Comments
 (0)