Configuring (and viewing!) logs in Laravel

  Рет қаралды 13,826

Aaron Francis

Aaron Francis

Күн бұрын

Пікірлер: 76
@lotfiabdallah5110
@lotfiabdallah5110 3 ай бұрын
I clicked "Do not recommend channel" on theo and friends years ago, I totally recommend this.
@senpos
@senpos 3 ай бұрын
Laravel looks very user-friendly and complete. They have everything! As a Python developer, I wish more stuff like that was available in Django out of the box. Enjoyed the video!
@SiddharthPant
@SiddharthPant 3 ай бұрын
Yeah man, mentioning what I wrote in another comment, my blog article on medium about Django logging missing how to is still one of my most read article. Here Laravel ecosystem has it by default nicely put in a config file for you to change two lines and forget about it as it covers all your needs.
@RafaelMilewski
@RafaelMilewski 3 ай бұрын
Is this a video response to theo? 😅
@yewnork
@yewnork 3 ай бұрын
my thought as well lol.
@dissident1337
@dissident1337 3 ай бұрын
My dude never even left the intro page of the docs and got mad he couldn't use a feature correctly. Absolutely embarrassing.
@Kay8B
@Kay8B 3 ай бұрын
His attempt was pathetic, he barely got started or read one paragraph in the documentation and began crying when he didn't understand why nothing worked.
@Pekz00r
@Pekz00r 3 ай бұрын
​@@Kay8BYes, and the worst part was that everything was working, but he still expected errors in the log. He didn't even realize that when he saw the images where uploaded like they should. It was really weird that that a seasoned web dev like him didn't even check the dev tools in the browser to see what was going on. Then he would have seen that the form posted just like it should.
@MrVimkaf
@MrVimkaf 3 ай бұрын
Theo never really wanted to learn laravel. I guess he was looking for rants and bants. Any cool headed person that can follow the docs or guide will find it easy to setup and deploy.
@mikechurvis2762
@mikechurvis2762 3 ай бұрын
At our firm we've found that Sentry is great for exception reporting. It should NOT, however, be used for *direct* logging using the Log channel. Log events are never as rich as exceptions, but they'll show up as their own event anyway, indistinguishable from exception events until you drill into them. It is better, in our experience, to stick with Sentry's default behavior where logs written prior to an exception will be reported *within* the exception event as breadcrumbs. I'd love to see a video from you on open-source browser-based log viewers, or how to aggregate logs from multiple apps. Good content as always, sir!
@soyarenamovediza6498
@soyarenamovediza6498 3 ай бұрын
Last week I was looking for a nice way to see my logs and I didn’t know anything about pail. Thanks!!! It is just what I needed ❤
@carlhostetler4209
@carlhostetler4209 3 ай бұрын
Thanks, I needed this one. Coming from a different ecosystem I struggled to find all the feedback that I am use to. And I definitely read through the doc on log stacks and got a bit overwhelmed 😅
@Trance_Code
@Trance_Code 3 ай бұрын
I think the best tool for Log is Sentry... a really powerful extension and service... Thank you Aaron for share!
@theneverything
@theneverything 3 ай бұрын
Very helpful! Personally I use Sentry and daily logs in production and it works really well.
@etherbeans
@etherbeans 3 ай бұрын
and now, back to our regularly scheduled programming
@ripplesr5655
@ripplesr5655 3 ай бұрын
lol. Right on!
@SiddharthPant
@SiddharthPant 3 ай бұрын
This is a very good video. Atleast after all this twitter drama I got to know about Laravel Pail and the log channels today. Some drama driven learning going on here. Really unfortunate that I saw lots of people in Theo's stream immediatly justifying staying away from such an extensive feature set, just because somebody else is angry. Coming from Django world where I wrote a blog on how to do loggin right and its still one of my most read blogs in medium because its that confusing. I can immediatly see the benifits of Laravel's logging setup. It fulfills all the needs that I have faced till now in my projects in Django.
@aarondfrancis
@aarondfrancis 3 ай бұрын
I appreciate you saying that! Thank you.
@geradtroje4653
@geradtroje4653 3 ай бұрын
Well done. Thanks Aaron.
@JenuelDevTutors
@JenuelDevTutors 3 ай бұрын
thanks for this video,, what code editor are you using?
@aarondfrancis
@aarondfrancis 3 ай бұрын
PHPStorm!
@navaneeth6157
@navaneeth6157 3 ай бұрын
Can we log to the console or logging to the file is best?
@Frank-ou2nr
@Frank-ou2nr 3 ай бұрын
Great video! You mentioned that Ray can only be used to debug locally. While that sure is easy, they also suppport SSH connections to remote servers.
@sinaahmadpour3180
@sinaahmadpour3180 3 ай бұрын
It's a dumb question! sorry , but how did you maximize the chrome with keyboard shortcut?
@barbapapazes
@barbapapazes 3 ай бұрын
Really nice video!
@JustPlayerDE
@JustPlayerDE 3 ай бұрын
Great video! If you use laravel sail (or any other docker setup for dev) you can also use the "stderr" log driver/output to log everything to the terminal inside the docker container, this is what i use if i work with sail. wont look as nice as pail though. Another interesting alternative to sentry i can recommend is glitchtip, may not have that many features but a lot less resource requirements and is also fully opensource.
@JonathanAlexeyPereiraFontes
@JonathanAlexeyPereiraFontes 3 ай бұрын
Thank you show that Laravel is best option! :)
@globiws
@globiws 3 ай бұрын
tail might be uninspired, but it works. For a more inspired and cross-app log viewer, there's also lnav
@curious.coder.X
@curious.coder.X 3 ай бұрын
Hello Aaron, I love your laravel videos. I am also a laravel developer, and would request you to please cover Jobs and Queues in Laravel in a multi-tenant application in details using database and AWS SQS driver. I have tried many ways to make things work but it seems whenever I change DB inside a JOB, there is some null exception error from JOB class. Also the bus (Batch Job processing), dont update the in_progress, error etc status, when I switch DB from a Job Class, lets say SendEmailViaJob. Basically I have multiple DBs and I have to switch to a specific DB (whose information is in payload of JOB) and do the processing in that DB, and then change the DB to a base db. Hope you find this topic interesting, and cover it, so that we can apply what is the standard way.
@OstapBrehin
@OstapBrehin 3 ай бұрын
Legend as usual
@thedavistheory7674
@thedavistheory7674 3 ай бұрын
I knew this would happen, any final thoughts Aaron?
@islandblaze007
@islandblaze007 3 ай бұрын
@Aaron, looks like your audio is a smidge out of sync with the video on this one. I don’t mind it much since your content is always top notch!
@jimblonde2523
@jimblonde2523 3 ай бұрын
I like to put my logs into json formatter and then pipe the tail in jq .
@aarondfrancis
@aarondfrancis 3 ай бұрын
Oh that's fun! Never done that
@underflowexception
@underflowexception 3 ай бұрын
You may need to set the correct permissions on the file and parent folder as well.. I usually always run into permission issues.
@raiyansarker
@raiyansarker 3 ай бұрын
why isn't it configured out of the box? I mean a mailer is present by default but not better logging?
@RobertoDuransh
@RobertoDuransh 3 ай бұрын
as always awesome video!!!. here is an idea for a video - automatic API documentation with tools like dedoc/scramble
@JoachimMuratsGhost
@JoachimMuratsGhost 3 ай бұрын
If telescope isn't recommended for production, what should I use to track slow requests? I know pulse has something like this, but it doesn't tell me what users are experiencing the slow requests.
@BrunoBernard-kn6vt
@BrunoBernard-kn6vt 3 ай бұрын
Use an APM (Application performance Monitoring) tool. Sentry is one
@zohaibhassan156
@zohaibhassan156 3 ай бұрын
you can use telescope in production with conditions. like log only if there's error in request. or log whole batch of request if there's error. log only monitored users.
@MrNichuya
@MrNichuya 3 ай бұрын
I knew that this reactjs youtuber would only bring trouble
@aarondfrancis
@aarondfrancis 3 ай бұрын
Laravel is huge, it can be confusing knowing what parts to use. I didn't love his anger, but I get the confusion
@MrNichuya
@MrNichuya 3 ай бұрын
you are too kind
@chrispian
@chrispian 3 ай бұрын
@@aarondfrancis Same. We've all done what he did in the video but it seemed like a bit of an over reaction. Not my favorite style of video content.
@DirkZz
@DirkZz 3 ай бұрын
The only bit for which the reactjs youtuber got excited was the idea that this might even cause a PR drama for Laravel. I found it a bit weird to say, but given how he approached the whole ordeal, it makes sense for him, I guess.
@JustSomeObject
@JustSomeObject 3 ай бұрын
I use telescope on production on a SaaS with about 10,000 active users, t4g micro database and t4g micro ec2. It's fine Just don't log every tiny thing in telescope, it's configurable
@dimitrisborbotsialos
@dimitrisborbotsialos 3 ай бұрын
Elasticsearch + Kibana
@RobertoRenovato
@RobertoRenovato 3 ай бұрын
Wait, aren't you required to pay for Herd Pro to view your logs? 😏
@DirkZz
@DirkZz 3 ай бұрын
That would have been an amazing (trol) intro, walking through the purchase of Herd and viewing the logs 😄
@SiddharthPant
@SiddharthPant 3 ай бұрын
Aaron mentions that in the video. TLDR: there are free CLI or GUI tools and paid GUI tools. All are pretty good options and actively developed. Based on your needs you can go with anyone. Unfortunately there are no "soon to be abandoned because new thing exists" options, you go with JS for that.
@RobertoRenovato
@RobertoRenovato 3 ай бұрын
​@@SiddharthPant I think you didn't catch the joke (context) here. 😉
@francismori7
@francismori7 3 ай бұрын
I use Telescope in prod lol
@aarondfrancis
@aarondfrancis 3 ай бұрын
haha god speed!
@ryangjchandler
@ryangjchandler 3 ай бұрын
First? (Not sure if I'm doing this right...)
@gradientO
@gradientO 3 ай бұрын
Fist
@rasalas91
@rasalas91 3 ай бұрын
I went blind, I want reparations 💰 (it's 23:28 o clock and I was not prepared after a 9h 30min coding session that really hurt my brain)
@vivekkapoor2537
@vivekkapoor2537 3 ай бұрын
Can you make a video for how to implement In App Purchase for Apple and Google for Subscription and Product
@stefanzweifel
@stefanzweifel 3 ай бұрын
Good (sub)-video!
Laravel + Livewire todo app (and so much more)
16:41
Aaron Francis
Рет қаралды 52 М.
Laravel Octane: supercharge your Laravel applications
8:34
Aaron Francis
Рет қаралды 50 М.
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,7 МЛН
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
Paper is Obsolete - The Supernote Manta
21:42
Vladimir Kostek
Рет қаралды 1,8 М.
Laravel's secret weapon: macros (watch me code)
23:46
Aaron Francis
Рет қаралды 24 М.
Laravel Horizon: queue monitoring + configuration
14:54
Aaron Francis
Рет қаралды 22 М.
How to Serve Laravel with FrankenPHP on Project IDX
1:21
DevWithAri
Рет қаралды 2 М.
Significantly Improve Page Loads Using Laravel Prefetching
9:12
What’s Up with Laravel? It’s Everywhere, and Here’s Why!
6:22
Laravel Pennant: first-party feature flags
14:21
Aaron Francis
Рет қаралды 20 М.
Vectors in SQLite! (with libSQL)
16:31
Aaron Francis
Рет қаралды 8 М.
The Tools I Use to Build Products in Laravel
19:00
Josh Cirre
Рет қаралды 43 М.
Struggling with Laravel + Vite
34:38
Aaron Francis
Рет қаралды 10 М.
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,7 МЛН