Code Monkey home page Code Monkey logo

Comments (5)

cipherzzz avatar cipherzzz commented on June 8, 2024

@joshLong145 - I can look at this if you want to assign to me

from js-sdk.

joshLong145 avatar joshLong145 commented on June 8, 2024

@cipherzzz sure! is now assigned to you. :)

from js-sdk.

cipherzzz avatar cipherzzz commented on June 8, 2024

Thanks @joshLong145 - I will get on it!

from js-sdk.

cipherzzz avatar cipherzzz commented on June 8, 2024

@joshLong145

Hey! just for clarification, Are you saying that you want the following methods to have versions of each level of logging as a convenience mechanism within packages/misc?

Current Methods

  • log
  • logError
  • logWithRequestId
  • logErrorWithRequestId

Log Levels

  • Debug
  • Info
  • Trace
  • Warn
  • Error?

New Methods

Debug

  • logDebug
  • logDebugWithRequestId
console.log()

Info

  • logWarn
  • logWarnWithRequestId
console.info()

Trace

  • logTrace
  • logTraceWithRequestId
console.trace()

Warn

  • logWarn
  • logWarnWithRequestId
console.warn()

Error

  • logError
  • logErrorWithRequestId
console.error()

from js-sdk.

joshLong145 avatar joshLong145 commented on June 8, 2024

@cipherzzz
You are correct in your understanding. However we have our own logging package which we should use over console
I updated the description of the issue to link to our logging package and where the misc package wraps some of the implementations.

This task does not extend to using the new logging utilities. but if you want to try out writing a configuration interface for the logging to replace the debug flag in our LitNodeClient

from js-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.