Skip to content

Commit e25eaa6

Browse files
authored
Merge pull request #1 from fullstack-build/development
Increased compatibility to Node.js >= 8
2 parents c97f525 + 20b58b3 commit e25eaa6

34 files changed

+560
-413
lines changed

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
engine-strict=true

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
8

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ log.fatal(new Error("I am a pretty Error with a stacktrace."));
8787
* **Named Logger:** Logger can be named (e.g. useful for packages/modules and monorepos)
8888
* **Highly configurable:** All settings can be changed through a typed object
8989
* **Short paths:** Paths are relative to the root of the application folder
90+
* **Runtime-agnostic:** Works with `ts-node`, `ts-node-dev`, as well as compiled down to JavaScript
9091
* **Optionally overwrite `console`:** Catch `console.log` etc. that would otherwise be hard to find
9192
* **Tested:** 100% code coverage, CI
9293

docs/assets/tslog_code_frame.png

15.2 KB
Loading
13.7 KB
Loading

docs/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8">
5-
<title>tslog - 📝 Expressive TypeScript Logger for Node.js: Call locations, pretty Errors, stack traces code frames. JSON output and transports.</title>
5+
<title>tslog - 📝 Expressive TypeScript Logger for Node.js: Pretty errors, stack traces, code frames, and JSON output to attachable transports.</title>
66
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
7-
<meta name="description" content="tslog - Expressive TypeScript Logger for Node.js: Call locations, pretty Errors, stack traces code frames. JSON output and transports.">
7+
<meta name="description" content="tslog - Expressive TypeScript Logger for Node.js: Pretty errors, stack traces, code frames, and JSON output to attachable transports.">
88
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
99
<style>
1010
.github-corner {

docs/tsdoc/classes/logger.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ <h3>constructor</h3>
121121
<li class="tsd-description">
122122
<aside class="tsd-sources">
123123
<ul>
124-
<li>Defined in <a href="https://github.com/fullstack-build/tslog/blob/56788ec/src/index.ts#L64">index.ts:64</a></li>
124+
<li>Defined in <a href="https://github.com/fullstack-build/tslog/blob/1123b3f/src/index.ts#L64">index.ts:64</a></li>
125125
</ul>
126126
</aside>
127127
<div class="tsd-comment tsd-typography">
@@ -150,7 +150,7 @@ <h3><span class="tsd-flag ts-flagReadonly">Readonly</span> settings</h3>
150150
<div class="tsd-signature tsd-kind-icon">settings<span class="tsd-signature-symbol">:</span> <a href="../interfaces/isettings.html" class="tsd-signature-type">ISettings</a></div>
151151
<aside class="tsd-sources">
152152
<ul>
153-
<li>Defined in <a href="https://github.com/fullstack-build/tslog/blob/56788ec/src/index.ts#L64">index.ts:64</a></li>
153+
<li>Defined in <a href="https://github.com/fullstack-build/tslog/blob/1123b3f/src/index.ts#L64">index.ts:64</a></li>
154154
</ul>
155155
</aside>
156156
<div class="tsd-comment tsd-typography">
@@ -172,7 +172,7 @@ <h3>attach<wbr>Transport</h3>
172172
<li class="tsd-description">
173173
<aside class="tsd-sources">
174174
<ul>
175-
<li>Defined in <a href="https://github.com/fullstack-build/tslog/blob/56788ec/src/index.ts#L117">index.ts:117</a></li>
175+
<li>Defined in <a href="https://github.com/fullstack-build/tslog/blob/1123b3f/src/index.ts#L117">index.ts:117</a></li>
176176
</ul>
177177
</aside>
178178
<div class="tsd-comment tsd-typography">
@@ -209,7 +209,7 @@ <h3>debug</h3>
209209
<li class="tsd-description">
210210
<aside class="tsd-sources">
211211
<ul>
212-
<li>Defined in <a href="https://github.com/fullstack-build/tslog/blob/56788ec/src/index.ts#L147">index.ts:147</a></li>
212+
<li>Defined in <a href="https://github.com/fullstack-build/tslog/blob/1123b3f/src/index.ts#L147">index.ts:147</a></li>
213213
</ul>
214214
</aside>
215215
<div class="tsd-comment tsd-typography">
@@ -240,7 +240,7 @@ <h3>error</h3>
240240
<li class="tsd-description">
241241
<aside class="tsd-sources">
242242
<ul>
243-
<li>Defined in <a href="https://github.com/fullstack-build/tslog/blob/56788ec/src/index.ts#L171">index.ts:171</a></li>
243+
<li>Defined in <a href="https://github.com/fullstack-build/tslog/blob/1123b3f/src/index.ts#L171">index.ts:171</a></li>
244244
</ul>
245245
</aside>
246246
<div class="tsd-comment tsd-typography">
@@ -271,7 +271,7 @@ <h3>fatal</h3>
271271
<li class="tsd-description">
272272
<aside class="tsd-sources">
273273
<ul>
274-
<li>Defined in <a href="https://github.com/fullstack-build/tslog/blob/56788ec/src/index.ts#L179">index.ts:179</a></li>
274+
<li>Defined in <a href="https://github.com/fullstack-build/tslog/blob/1123b3f/src/index.ts#L179">index.ts:179</a></li>
275275
</ul>
276276
</aside>
277277
<div class="tsd-comment tsd-typography">
@@ -302,7 +302,7 @@ <h3>info</h3>
302302
<li class="tsd-description">
303303
<aside class="tsd-sources">
304304
<ul>
305-
<li>Defined in <a href="https://github.com/fullstack-build/tslog/blob/56788ec/src/index.ts#L155">index.ts:155</a></li>
305+
<li>Defined in <a href="https://github.com/fullstack-build/tslog/blob/1123b3f/src/index.ts#L155">index.ts:155</a></li>
306306
</ul>
307307
</aside>
308308
<div class="tsd-comment tsd-typography">
@@ -333,7 +333,7 @@ <h3>silly</h3>
333333
<li class="tsd-description">
334334
<aside class="tsd-sources">
335335
<ul>
336-
<li>Defined in <a href="https://github.com/fullstack-build/tslog/blob/56788ec/src/index.ts#L131">index.ts:131</a></li>
336+
<li>Defined in <a href="https://github.com/fullstack-build/tslog/blob/1123b3f/src/index.ts#L131">index.ts:131</a></li>
337337
</ul>
338338
</aside>
339339
<div class="tsd-comment tsd-typography">
@@ -364,7 +364,7 @@ <h3>trace</h3>
364364
<li class="tsd-description">
365365
<aside class="tsd-sources">
366366
<ul>
367-
<li>Defined in <a href="https://github.com/fullstack-build/tslog/blob/56788ec/src/index.ts#L139">index.ts:139</a></li>
367+
<li>Defined in <a href="https://github.com/fullstack-build/tslog/blob/1123b3f/src/index.ts#L139">index.ts:139</a></li>
368368
</ul>
369369
</aside>
370370
<div class="tsd-comment tsd-typography">
@@ -395,7 +395,7 @@ <h3>warn</h3>
395395
<li class="tsd-description">
396396
<aside class="tsd-sources">
397397
<ul>
398-
<li>Defined in <a href="https://github.com/fullstack-build/tslog/blob/56788ec/src/index.ts#L163">index.ts:163</a></li>
398+
<li>Defined in <a href="https://github.com/fullstack-build/tslog/blob/1123b3f/src/index.ts#L163">index.ts:163</a></li>
399399
</ul>
400400
</aside>
401401
<div class="tsd-comment tsd-typography">

docs/tsdoc/globals.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ <h3>TLog<wbr>Level<wbr>Color</h3>
105105
<div class="tsd-signature tsd-kind-icon">TLog<wbr>Level<wbr>Color<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{}</span></div>
106106
<aside class="tsd-sources">
107107
<ul>
108-
<li>Defined in <a href="https://github.com/fullstack-build/tslog/blob/56788ec/src/interfaces.ts#L33">interfaces.ts:33</a></li>
108+
<li>Defined in <a href="https://github.com/fullstack-build/tslog/blob/1123b3f/src/interfaces.ts#L33">interfaces.ts:33</a></li>
109109
</ul>
110110
</aside>
111111
<div class="tsd-comment tsd-typography">
@@ -125,7 +125,7 @@ <h3>TLog<wbr>Level<wbr>Id</h3>
125125
<div class="tsd-signature tsd-kind-icon">TLog<wbr>Level<wbr>Id<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">keyof </span><a href="interfaces/iloglevel.html" class="tsd-signature-type">ILogLevel</a></div>
126126
<aside class="tsd-sources">
127127
<ul>
128-
<li>Defined in <a href="https://github.com/fullstack-build/tslog/blob/56788ec/src/interfaces.ts#L21">interfaces.ts:21</a></li>
128+
<li>Defined in <a href="https://github.com/fullstack-build/tslog/blob/1123b3f/src/interfaces.ts#L21">interfaces.ts:21</a></li>
129129
</ul>
130130
</aside>
131131
<div class="tsd-comment tsd-typography">
@@ -140,7 +140,7 @@ <h3>TLog<wbr>Level<wbr>Name</h3>
140140
<div class="tsd-signature tsd-kind-icon">TLog<wbr>Level<wbr>Name<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">ILogLevel</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">TLogLevelId</span><span class="tsd-signature-symbol">]</span></div>
141141
<aside class="tsd-sources">
142142
<ul>
143-
<li>Defined in <a href="https://github.com/fullstack-build/tslog/blob/56788ec/src/interfaces.ts#L27">interfaces.ts:27</a></li>
143+
<li>Defined in <a href="https://github.com/fullstack-build/tslog/blob/1123b3f/src/interfaces.ts#L27">interfaces.ts:27</a></li>
144144
</ul>
145145
</aside>
146146
<div class="tsd-comment tsd-typography">
@@ -155,7 +155,7 @@ <h3>TTransport<wbr>Logger</h3>
155155
<div class="tsd-signature tsd-kind-icon">TTransport<wbr>Logger&lt;T&gt;<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{}</span></div>
156156
<aside class="tsd-sources">
157157
<ul>
158-
<li>Defined in <a href="https://github.com/fullstack-build/tslog/blob/56788ec/src/interfaces.ts#L185">interfaces.ts:185</a></li>
158+
<li>Defined in <a href="https://github.com/fullstack-build/tslog/blob/1123b3f/src/interfaces.ts#L185">interfaces.ts:185</a></li>
159159
</ul>
160160
</aside>
161161
<div class="tsd-comment tsd-typography">

docs/tsdoc/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ <h3>All Features</h3>
141141
<li><strong>Named Logger:</strong> Logger can be named (e.g. useful for packages/modules and monorepos)</li>
142142
<li><strong>Highly configurable:</strong> All settings can be changed through a typed object</li>
143143
<li><strong>Short paths:</strong> Paths are relative to the root of the application folder</li>
144+
<li><strong>Runtime-agnostic:</strong> Works with <code>ts-node</code>, <code>ts-node-dev</code>, as well as compiled down to JavaScript</li>
144145
<li><strong>Optionally overwrite <code>console</code>:</strong> Catch <code>console.log</code> etc. that would otherwise be hard to find</li>
145146
<li><strong>Tested:</strong> 100% code coverage, CI</li>
146147
</ul>

docs/tsdoc/interfaces/icodeframe.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ <h3>column<wbr>Number</h3>
103103
<div class="tsd-signature tsd-kind-icon">column<wbr>Number<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">null</span></div>
104104
<aside class="tsd-sources">
105105
<ul>
106-
<li>Defined in <a href="https://github.com/fullstack-build/tslog/blob/56788ec/src/interfaces.ts#L221">interfaces.ts:221</a></li>
106+
<li>Defined in <a href="https://github.com/fullstack-build/tslog/blob/1123b3f/src/interfaces.ts#L221">interfaces.ts:221</a></li>
107107
</ul>
108108
</aside>
109109
</section>
@@ -113,7 +113,7 @@ <h3>first<wbr>Line<wbr>Number</h3>
113113
<div class="tsd-signature tsd-kind-icon">first<wbr>Line<wbr>Number<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
114114
<aside class="tsd-sources">
115115
<ul>
116-
<li>Defined in <a href="https://github.com/fullstack-build/tslog/blob/56788ec/src/interfaces.ts#L219">interfaces.ts:219</a></li>
116+
<li>Defined in <a href="https://github.com/fullstack-build/tslog/blob/1123b3f/src/interfaces.ts#L219">interfaces.ts:219</a></li>
117117
</ul>
118118
</aside>
119119
</section>
@@ -123,7 +123,7 @@ <h3>line<wbr>Number</h3>
123123
<div class="tsd-signature tsd-kind-icon">line<wbr>Number<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
124124
<aside class="tsd-sources">
125125
<ul>
126-
<li>Defined in <a href="https://github.com/fullstack-build/tslog/blob/56788ec/src/interfaces.ts#L220">interfaces.ts:220</a></li>
126+
<li>Defined in <a href="https://github.com/fullstack-build/tslog/blob/1123b3f/src/interfaces.ts#L220">interfaces.ts:220</a></li>
127127
</ul>
128128
</aside>
129129
</section>
@@ -133,7 +133,7 @@ <h3>lines<wbr>After</h3>
133133
<div class="tsd-signature tsd-kind-icon">lines<wbr>After<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></div>
134134
<aside class="tsd-sources">
135135
<ul>
136-
<li>Defined in <a href="https://github.com/fullstack-build/tslog/blob/56788ec/src/interfaces.ts#L224">interfaces.ts:224</a></li>
136+
<li>Defined in <a href="https://github.com/fullstack-build/tslog/blob/1123b3f/src/interfaces.ts#L224">interfaces.ts:224</a></li>
137137
</ul>
138138
</aside>
139139
</section>
@@ -143,7 +143,7 @@ <h3>lines<wbr>Before</h3>
143143
<div class="tsd-signature tsd-kind-icon">lines<wbr>Before<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></div>
144144
<aside class="tsd-sources">
145145
<ul>
146-
<li>Defined in <a href="https://github.com/fullstack-build/tslog/blob/56788ec/src/interfaces.ts#L222">interfaces.ts:222</a></li>
146+
<li>Defined in <a href="https://github.com/fullstack-build/tslog/blob/1123b3f/src/interfaces.ts#L222">interfaces.ts:222</a></li>
147147
</ul>
148148
</aside>
149149
</section>
@@ -153,7 +153,7 @@ <h3>relevant<wbr>Line</h3>
153153
<div class="tsd-signature tsd-kind-icon">relevant<wbr>Line<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
154154
<aside class="tsd-sources">
155155
<ul>
156-
<li>Defined in <a href="https://github.com/fullstack-build/tslog/blob/56788ec/src/interfaces.ts#L223">interfaces.ts:223</a></li>
156+
<li>Defined in <a href="https://github.com/fullstack-build/tslog/blob/1123b3f/src/interfaces.ts#L223">interfaces.ts:223</a></li>
157157
</ul>
158158
</aside>
159159
</section>

0 commit comments

Comments
 (0)