-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
localStorage variables not working - maybe it's me #50
Comments
Do you have something that I can check or is it not possible to share? I am currently not aware of any issues that would explain what you are seeing but it's definitely possible there are issues. I am currently using beta 18 in another hobby project of mine but that's it so it still needs some more time to find them all. So this definitely could be an issue with ulog but I need more info before \I can act on this. Can you try isolating it maybe? Maybe create very small app by copying your app and ripping out most of the code / pages and only leave a single page that exhibits the problem? Also one thing to check: in the devtools do you see one localstorage area or multiple? I know on some sites like e.g. codepen they will load scripts in an iframe and that iframe gets it's own localstorage which can be very confusing. How do you set the localStorage variables? Have you tried |
Also, I'm interested in how you are loading |
I appreciate your quick feedback. I got distracted into other life things,_ so that's the reason for the delay. I don't know what changed, but it is all working great now. I think it was the realization that the log entries are all lowercase for the loggername, so my App:updateFIle required a log entry like Appreciate your response, and the cool library. |
@svenmarley No problem! I'm also sometimes slow to respond. We all have lives right? About your remark that 'the log entries are all lowercase for the loggername', can you elaborate? Are you saying that if you create a logger with Thanks for trying |
I just confirmed that the log= entry is case sensitive. i.e. |
Maybe it's the same problem: since 2.0.0-beta.15 |
@reinhard Can you try this in the ulog tutorial and report if it works there for you? It works as expected for me Are you using |
@Download I've created a simple demo based on create-react-app Hope that helps! |
That certainly helps! Will investigate this. Sorry for the inconvenience but that's why it's still beta... I need this kind of feedback to get everything working right in all contexts. So thank you very much for contributing with reports like this! Will let you know when I reproduce and finally fix this. May take some time though as I just accepted a new job... |
@reinhard Oh, I see you |
Note also - you can easily replicate the case sensitivity here as well.
This shows that the value must be case sensitive to the name of the channel. |
@svenmarley Yes, that is expected behavior |
@reinhard |
@svenmarley Can you let me know if you still have issues that are not covered by #56 ? |
I have no other issues outstanding. I had misunderstood that the log entries are supposed to be case-sensitive. Everything is working great on my side. Thanks. |
I'm new to React, so it might-be/probably-is me. But, I can't get the localStorage variables to work in my app like they do in the tutorial. The URL variable does work.
I set the Application -> Local Storage -> {local url}
key | value
log | warn; app:re*=all
My loggers are named
app:render
,app:discover
,app:updateFile
.I only want the
app:render
logs to show everything.It also does not see the log_format localStorage entry either. So, I'm wondering if this feature just hasn't been completed yet. Or do I have something set wrong?
I can get to the localStorage.getItem( 'log' ) from inside my app just fine - it returns whatever is in there.
Hopefully, it's something simple I'm missing.
The text was updated successfully, but these errors were encountered: