Coder Social home page Coder Social logo

Comments (15)

rderimay avatar rderimay commented on May 27, 2024

I like that yes, this is more flexible.
I think that would be a good idea to add a "grouping" parameter
Instead of log(str) we could have log(group, level, str) which would output

EXIF      | Error
FUJIDELE  | Error

instead of the current just

Error
Error

from focus-points.

musselwhizzle avatar musselwhizzle commented on May 27, 2024

sure, i would just say, separate the log levels to different methods; 1 for each level. It's more common such as in LrLogger and Android Log

logInfo(method, message)
...
logError(method, message)

from focus-points.

rderimay avatar rderimay commented on May 27, 2024

yep

from focus-points.

musselwhizzle avatar musselwhizzle commented on May 27, 2024

yours.

reference:
https://github.com/musselwhizzle/Focus-Points/tree/feature/prefs_pane

from focus-points.

musselwhizzle avatar musselwhizzle commented on May 27, 2024

due to having so many feature branches out right now, please dont refactor all log statements just yet. It will make it harder to merge the conflicts. Just setup the feature/code and we'll do another pass for moving from log(str) to the new code once merges are in.

from focus-points.

rderimay avatar rderimay commented on May 27, 2024

Yes, understood.

from focus-points.

rderimay avatar rderimay commented on May 27, 2024
@musselwhizzle , is there a way to create a new branch based on another ? I would like to create a new branch for my log levels stuff building on the branch feature/prefs_pane.

Is this possible easily ?

from focus-points.

musselwhizzle avatar musselwhizzle commented on May 27, 2024
git fetch -- gets all the latest branch names from your remote repo
git checkout branch_name -- checks out an existing branch
git checkout -b branch_name - creates a new branch based off of where you currently are
git push -u origin branch_name - sends new local branch to remote repo (your personal fork) and sets up tracking

checkout whatever branch you want, probably this

git fetch
git checkout feature/fix_display_rotation
git pull
git checkout -b feature/your_new_feature
-- do work
-- add
git push -u origin feature/your_new_feature

you can merge in and out of branches easily if works is separated by feature.

from focus-points.

rderimay avatar rderimay commented on May 27, 2024

from focus-points.

rderimay avatar rderimay commented on May 27, 2024

from focus-points.

musselwhizzle avatar musselwhizzle commented on May 27, 2024

Sorry, I changed it from master to feature/prefs_pane and then apparently didn't click merge but closed the PR. I merged it in now and can see the file here:
https://github.com/musselwhizzle/Focus-Points/blob/feature/prefs_pane/focuspoints.lrdevplugin/FocusPointPrefs.lua

from focus-points.

rderimay avatar rderimay commented on May 27, 2024

Sorry, forget it. I think I misunderstood you.
I thought you had merged the PR of the guy who did the pref panes example into the branch feature/prefs_pane.
As I understand, you just did open the branch for me.

from focus-points.

rderimay avatar rderimay commented on May 27, 2024

ah ok, so we have it now !

from focus-points.

rderimay avatar rderimay commented on May 27, 2024

Solved by PR #85

from focus-points.

musselwhizzle avatar musselwhizzle commented on May 27, 2024

requested a change in the PR, but merged anyway.

from focus-points.

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.