Skip to content

Feature log filter #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ variables:
NPM_CONFIG_CACHE: "${CI_PROJECT_DIR}/tmp/npm"
# Prefer offline node module installation
NPM_CONFIG_PREFER_OFFLINE: "true"
# `ts-node` has its own cache
TS_CACHED_TRANSPILE_CACHE: "${CI_PROJECT_DIR}/tmp/ts-node-cache"
TS_CACHED_TRANSPILE_PORTABLE: "true"
# Homebrew cache only used by macos runner
HOMEBREW_CACHE: "${CI_PROJECT_DIR}/tmp/Homebrew"

Expand All @@ -27,7 +24,6 @@ cache:
key: $CI_COMMIT_REF_SLUG
paths:
- ./tmp/npm/
- ./tmp/ts-node-cache/
# Homebrew cache is only used by the macos runner
- ./tmp/Homebrew
# `jest` cache is configured in jest.config.js
Expand Down
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Enables npm link
prefix=~/.npm
2 changes: 1 addition & 1 deletion docs/assets/search.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/classes/ConsoleErrHandler.html

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion docs/classes/ConsoleHandler.html

This file was deleted.

1 change: 1 addition & 0 deletions docs/classes/ConsoleOutHandler.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/classes/Handler.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/classes/default.html

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<a href="#js-logger" id="js-logger" style="color: inherit; text-decoration: none;">
<h1>js-logger</h1>
</a>
<p><a href="https://gitlab.com/MatrixAI/open-source/js-logger/commits/master"><img src="https://gitlab.com/MatrixAI/open-source/js-logger/badges/master/pipeline.svg" alt="pipeline status"></a></p>
<p>staging:<a href="https://gitlab.com/MatrixAI/open-source/js-logger/commits/staging"><img src="https://gitlab.com/MatrixAI/open-source/js-logger/badges/staging/pipeline.svg" alt="pipeline status"></a>
master:<a href="https://gitlab.com/MatrixAI/open-source/js-logger/commits/master"><img src="https://gitlab.com/MatrixAI/open-source/js-logger/badges/master/pipeline.svg" alt="pipeline status"></a></p>
<p>This library provies a JavaScript logger that is similar to the Python logger.</p>

<a href="#installation" id="installation" style="color: inherit; text-decoration: none;">
Expand Down Expand Up @@ -30,4 +31,4 @@ <h3>Publishing</h3>
</a>
<pre><code class="language-sh"><span class="hl-1"># npm login</span><br/><span class="hl-0">npm version patch </span><span class="hl-1"># major/minor/patch</span><br/><span class="hl-0">npm run build</span><br/><span class="hl-0">npm publish --access public</span><br/><span class="hl-0">git push</span><br/><span class="hl-0">git push --tags</span>
</code></pre>
</div></div><div class="col-4 col-menu menu-sticky-wrap menu-highlight"><nav class="tsd-navigation primary"><ul><li class="current"><a href="modules.html">Exports</a></li><li class=" tsd-kind-namespace"><a href="modules/formatting.html">formatting</a></li></ul></nav><nav class="tsd-navigation secondary menu-sticky"><ul><li class="tsd-kind-enum"><a href="enums/LogLevel.html" class="tsd-kind-icon">Log<wbr/>Level</a></li><li class="tsd-kind-class"><a href="classes/ConsoleHandler.html" class="tsd-kind-icon">Console<wbr/>Handler</a></li><li class="tsd-kind-class"><a href="classes/Handler.html" class="tsd-kind-icon">Handler</a></li><li class="tsd-kind-class"><a href="classes/StreamHandler.html" class="tsd-kind-icon">Stream<wbr/>Handler</a></li><li class="tsd-kind-class"><a href="classes/default.html" class="tsd-kind-icon">default</a></li><li class="tsd-kind-interface"><a href="interfaces/ToString.html" class="tsd-kind-icon">To<wbr/>String</a></li><li class="tsd-kind-type-alias"><a href="modules.html#LogFormatter" class="tsd-kind-icon">Log<wbr/>Formatter</a></li><li class="tsd-kind-type-alias"><a href="modules.html#LogRecord" class="tsd-kind-icon">Log<wbr/>Record</a></li><li class="tsd-kind-function"><a href="modules.html#levelToString" class="tsd-kind-icon">level<wbr/>To<wbr/>String</a></li></ul></nav></div></div></div><footer class="with-border-bottom"><div class="container"><h2>Legend</h2><div class="tsd-legend-group"><ul class="tsd-legend"><li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li><li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li><li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited constructor</span></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-method tsd-parent-kind-interface"><span class="tsd-kind-icon">Method</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected method</span></li></ul></div><h2>Settings</h2><p>Theme <select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></p></div></footer><div class="container tsd-generator"><p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div><div class="overlay"></div><script src="assets/main.js"></script></body></html>
</div></div><div class="col-4 col-menu menu-sticky-wrap menu-highlight"><nav class="tsd-navigation primary"><ul><li class="current"><a href="modules.html">Exports</a></li><li class=" tsd-kind-namespace"><a href="modules/formatting.html">formatting</a></li></ul></nav><nav class="tsd-navigation secondary menu-sticky"><ul><li class="tsd-kind-enum"><a href="enums/LogLevel.html" class="tsd-kind-icon">Log<wbr/>Level</a></li><li class="tsd-kind-class"><a href="classes/ConsoleErrHandler.html" class="tsd-kind-icon">Console<wbr/>Err<wbr/>Handler</a></li><li class="tsd-kind-class"><a href="classes/ConsoleOutHandler.html" class="tsd-kind-icon">Console<wbr/>Out<wbr/>Handler</a></li><li class="tsd-kind-class"><a href="classes/Handler.html" class="tsd-kind-icon">Handler</a></li><li class="tsd-kind-class"><a href="classes/StreamHandler.html" class="tsd-kind-icon">Stream<wbr/>Handler</a></li><li class="tsd-kind-class"><a href="classes/default.html" class="tsd-kind-icon">default</a></li><li class="tsd-kind-interface"><a href="interfaces/ToString.html" class="tsd-kind-icon">To<wbr/>String</a></li><li class="tsd-kind-type-alias"><a href="modules.html#LogFormatter" class="tsd-kind-icon">Log<wbr/>Formatter</a></li><li class="tsd-kind-type-alias"><a href="modules.html#LogRecord" class="tsd-kind-icon">Log<wbr/>Record</a></li><li class="tsd-kind-function"><a href="modules.html#levelToString" class="tsd-kind-icon">level<wbr/>To<wbr/>String</a></li></ul></nav></div></div></div><footer class="with-border-bottom"><div class="container"><h2>Legend</h2><div class="tsd-legend-group"><ul class="tsd-legend"><li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li><li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li><li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited constructor</span></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-method tsd-parent-kind-interface"><span class="tsd-kind-icon">Method</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected method</span></li></ul></div><h2>Settings</h2><p>Theme <select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></p></div></footer><div class="container tsd-generator"><p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div><div class="overlay"></div><script src="assets/main.js"></script></body></html>
Loading