Skip to content

Commit

Permalink
Add log level definition (apache#84)
Browse files Browse the repository at this point in the history
* Add log level definition

* Fix format

* Fix format
  • Loading branch information
hrsakai authored Mar 24, 2020
1 parent 2c53a34 commit 225d85d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,21 @@ 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,
MessageId: PulsarBinding.MessageId,
AuthenticationTls,
AuthenticationAthenz,
AuthenticationToken,
LogLevel,
};

module.exports = Pulsar;

0 comments on commit 225d85d

Please sign in to comment.