pulsar-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From massa...@apache.org
Subject [pulsar-client-node] branch master updated: Add log level definition (#84)
Date Tue, 24 Mar 2020 02:36:32 GMT
This is an automated email from the ASF dual-hosted git repository.

massakam pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar-client-node.git


The following commit(s) were added to refs/heads/master by this push:
     new 225d85d  Add log level definition (#84)
225d85d is described below

commit 225d85da22485ed493f17edd6b13e4df2d47dbad
Author: hrsakai <hsakai@yahoo-corp.jp>
AuthorDate: Tue Mar 24 11:36:22 2020 +0900

    Add log level definition (#84)
    
    * Add log level definition
    
    * Fix format
    
    * Fix format
---
 index.js | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/index.js b/index.js
index 97c83c6..461a853 100644
--- a/index.js
+++ b/index.js
@@ -22,6 +22,13 @@ const AuthenticationTls = require('./src/AuthenticationTls.js');
 const AuthenticationAthenz = require('./src/AuthenticationAthenz.js');
 const AuthenticationToken = require('./src/AuthenticationToken.js');
 
+const LogLevel = {
+  DEBUG: 0,
+  INFO: 1,
+  WARN: 2,
+  ERROR: 3,
+};
+
 const Pulsar = {
   Client: PulsarBinding.Client,
   Message: PulsarBinding.Message,
@@ -29,6 +36,7 @@ const Pulsar = {
   AuthenticationTls,
   AuthenticationAthenz,
   AuthenticationToken,
+  LogLevel,
 };
 
 module.exports = Pulsar;


Mime
View raw message