Giter Site home page Giter Site logo

docs's People

Contributors

adelanre avatar agilov avatar binarylogic avatar crowdhailer avatar gitbook-bot avatar mt-kelvintaywl avatar tanishq-dubey avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

docs's Issues

No module named 'timber.TimberFormatter'

It looks like the path to TimberFormatter is off in the docs. When attempting to use the dictionary-based LOGGING configuration (see snippet below), I got the following error:

ValueError: Cannot resolve 'timber.TimberFormatter': No module named 'timber.TimberFormatter'

LOGGING = {
    # ...
    'formatters': {
        'timber': {
            '()': 'timber.TimberFormatter',
        },
    },
    # ...
}

But this worked:

LOGGING = {
    # ...
    'formatters': {
        'timber': {
            '()': 'timber.formatters.TimberFormatter',
        },
    },
    # ...
}

Integration with winston not work when call debug log level

At now, It's work as expected when I try

const timber = new Timber(TIMBER_API_KEY, TIMBER_SOURCE_ID);
timber.log("Timber some log message");
timber.info("some log message");
timber.debug("some log message");
timber.warn("some log message");
timber.error("some log message");

But It's not working with debug log level when I integrate with winston:

const loggers = new winston.Container();
const timber = new Timber(TIMBER_API_KEY, TIMBER_SOURCE_ID);
this.loggers.add("timber", {
    transports: [new TimberTransport(timber)] as any,
});
loggers.get("timber").info("Hello world from add");
loggers.get("timber").debug("Hello world from add"); // This not work
loggers.get("timber").warn("Hello world from add");
loggers.get("timber").error("Hello world from add");
loggers.get("timber").log({ level: "info", message: "Some message" });
loggers.get("timber").log({ level: "debug", message: "Some message" }); // This not work too
loggers.get("timber").log({ level: "warn", message: "Some message" });
loggers.get("timber").log({ level: "error", message: "Some message" });

Please help fix this. I need this for your cool dashboard

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.