Coder Social home page Coder Social logo

Console sink class in the docs takes 2 parameters, `level` and `opts` but in the Console class code, it only takes one parameter, `opts` about structlog.nvim HOT 7 CLOSED

AnoRebel avatar AnoRebel commented on May 27, 2024
Console sink class in the docs takes 2 parameters, `level` and `opts` but in the Console class code, it only takes one parameter, `opts`

from structlog.nvim.

Comments (7)

Tastyep avatar Tastyep commented on May 27, 2024 1

You should not. I worked on it yesterday and today and the tests are passing, but the README examples are not updated yet, and the configuration structure has changed a little.

It will be ready this week, but I want to spend some time making nice diagrams for the 1.0 release.
I'll notify you here once I have updated the examples so that you can start using it if you want.

If yes, its installable by just adding the branch="develop" field to packer or lazy.nvim, right.?

Yes, it should work.

Thanks, I hope you had a great new year as well :)

from structlog.nvim.

Tastyep avatar Tastyep commented on May 27, 2024 1

Hello,

I released the version 0.2 of structlog 🎉 . The API is quite stable and should stay the same until the 1.0 release.
I saw that the logging part was inspired from lvim, so you might be interested in this for migrating to the version 0.2:
LunarVim/LunarVim#3695

I'll let you close the issue if you don't have any questions.

from structlog.nvim.

Tastyep avatar Tastyep commented on May 27, 2024

Hello,

You have used the latest documentation while using the code at version 0.1 (as you should).
For version 0.1, the logging level is passed to the logger, while I later made it configurable for each sink.

You can always check the README for version 0.1 here:
https://github.com/Tastyep/structlog.nvim/blob/v0.1/README.md

Because the documentation is based on the main branch, it is out of sinc with the released version, I understand how it can be confusing and will move the newer changes to a development branch.
I should invest some time to finalize this project and release a proper 1.0. It is always easier to start a project than to finish it ...

I'll leave the issue open as long as you need help.

from structlog.nvim.

AnoRebel avatar AnoRebel commented on May 27, 2024

Awesome. It's all good. As I read the code, I think I moved it to the Logger too.
Will be waiting for that 1.0 update.
Hahah, I totally understand, no worries, most projets dont really finish..
Thanks for your work.

I'll leave it open too so that you can redirect anyone else with the issue until the fix.

from structlog.nvim.

AnoRebel avatar AnoRebel commented on May 27, 2024

@Tastyep Is it okay to install and use the develop branch, because I want to use the NvimNotify and I think It's not available in the 0.1 branch.
If yes, its installable by just adding the branch="develop" field to packer or lazy.nvim, right.?

PS: I hope you had a great new year.

from structlog.nvim.

AnoRebel avatar AnoRebel commented on May 27, 2024

Awesome, thank you.!

I did, thanks.

from structlog.nvim.

AnoRebel avatar AnoRebel commented on May 27, 2024

Awesome, thanks.
Let me set it up real quick, and if I don't get any issues, I'll close this.

Again, thanks.

from structlog.nvim.

Related Issues (6)

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.