Skip to content

Commit

Permalink
Expose SDK version through Logger.VERSION
Browse files Browse the repository at this point in the history
  • Loading branch information
Santiago Souto committed Jan 22, 2024
1 parent 2082d67 commit 31fa9ab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/millicast-sdk/src/Logger.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import jsLogger from 'js-logger'
import { version } from '../package.json'

/**
* @module Logger
Expand Down Expand Up @@ -231,7 +232,8 @@ const Logger = {
*
* Logger.setHandler(myHandler, Logger.INFO)
*/
setHandler: (handler, level) => { customHandlers.push({ handler, level }) }
setHandler: (handler, level) => { customHandlers.push({ handler, level }) },
VERSION: version
}

export default Logger

0 comments on commit 31fa9ab

Please sign in to comment.