Skip to content
This repository was archived by the owner on Aug 6, 2025. It is now read-only.

Commit 82f242c

Browse files
committed
export fix
- documentation fix
1 parent cb89da7 commit 82f242c

File tree

9 files changed

+11
-100
lines changed

9 files changed

+11
-100
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Logging works out-of-the-box, with no configuration. However, note that only err
3030
specific configuration.
3131

3232
```javascript
33-
import {getLogger} from 'log4js2';
33+
import {getLogger} from '@log4js2/core';
3434

3535
const logger = getLogger('myLogger');
3636

@@ -46,7 +46,7 @@ Configure log4js using the `configure()` method. _This must be the first thing y
4646
the first log you commit will not allow updates from this function
4747

4848
```typescript
49-
import {configure, LogLevel} from 'log4js2';
49+
import {configure, LogLevel} from '@log4js2/core';
5050

5151
configure({
5252
layout : '%d [%p] %c %M:%line:%column - %m %ex',
@@ -66,7 +66,7 @@ from third-party libraries to input into your own logs bucket. Make sure `log4js
6666
ensure that all logs are caught.
6767

6868
```typescript
69-
import * from 'log4js2';
69+
import * from '@log4js2/core';
7070

7171
console.log('console log');
7272

docs/_includes/sections/virtual-console.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ <h1>Virtual Console</h1>
77
</p>
88

99
{% highlight typescript %}
10-
import * from 'log4js2';
10+
import * from '@log4js2/core';
1111

1212
console.log('console log');
1313

docs/_site/custom.html

Lines changed: 0 additions & 76 deletions
This file was deleted.

docs/_site/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ <h1>Configuration</h1>
7575
Otherwise, the first log you commit will not allow updates from this function.
7676
</p>
7777

78-
<figure class="highlight"><pre><code class="language-typescript" data-lang="typescript"><span class="k">import</span> <span class="p">{</span><span class="nx">configure</span><span class="p">,</span> <span class="nx">LogLevel</span><span class="p">}</span> <span class="k">from</span> <span class="s1">'log4js2'</span><span class="p">;</span>
78+
<figure class="highlight"><pre><code class="language-typescript" data-lang="typescript"><span class="k">import</span> <span class="p">{</span><span class="nx">configure</span><span class="p">,</span> <span class="nx">LogLevel</span><span class="p">}</span> <span class="k">from</span> <span class="s1">'@log4js2/core'</span><span class="p">;</span>
7979

8080
<span class="nx">configure</span><span class="p">({</span>
8181
<span class="na">level</span><span class="p">:</span> <span class="nx">LogLevel</span><span class="p">.</span><span class="nx">INFO</span>
@@ -95,7 +95,7 @@ <h1>Virtual Console</h1>
9595
page to ensure that all logs are caught.
9696
</p>
9797

98-
<figure class="highlight"><pre><code class="language-typescript" data-lang="typescript"><span class="k">import</span> <span class="o">*</span> <span class="k">from</span> <span class="s1">'log4js2'</span><span class="p">;</span>
98+
<figure class="highlight"><pre><code class="language-typescript" data-lang="typescript"><span class="k">import</span> <span class="o">*</span> <span class="k">from</span> <span class="s1">'@log4js2/core'</span><span class="p">;</span>
9999

100100
<span class="nx">console</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">'console log'</span><span class="p">);</span>
101101

docs/pages/custom.html

Lines changed: 0 additions & 6 deletions
This file was deleted.

docs/pages/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ <h1>Configuration</h1>
3333
</p>
3434

3535
{% highlight typescript %}
36-
import {configure, LogLevel} from 'log4js2';
36+
import {configure, LogLevel} from '@log4js2/core';
3737

3838
configure({
3939
level: LogLevel.INFO

package-lock.json

Lines changed: 2 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
"lint": "tslint -p tsconfig.json -c tslint.json",
77
"jekyll": "jekyll serve --destination ./docs/",
88
"test": "jest",
9-
"posttest": "codecov -f coverage/*.json",
10-
"postinstall": "echo 'Starting in v2.0, the log4js2 package will be changed to @log4js2/core'"
9+
"posttest": "codecov -f coverage/*.json"
1110
},
1211
"author": {
1312
"name": "Robin Schultz",
@@ -39,7 +38,6 @@
3938
"@types/lodash": "^4.14.118",
4039
"@types/node": "^10.12.2",
4140
"codecov": "^3.1.0",
42-
"jekyll": "^3.0.0-beta1",
4341
"jest": "^23.6.0",
4442
"jest-cli": "^23.6.0",
4543
"ts-jest": "^23.10.4",

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export { ConsoleAppender } from './appender/console.appender';
1010
export { IFileAppenderConfig, FileAppender } from './appender/file.appender';
1111
export { IRollingFileAppenderConfig, RollingFileAppender } from './appender/rolling.file.appender';
1212

13+
export { ILogEvent } from './log.event';
1314
export { Marker } from './marker';
1415

1516
export { Appender } from './decorator/appender';

0 commit comments

Comments
 (0)