[ home / bans / all ] [ qa / jp ] [ maho ] [ f / ec ] [ b / poll ] [ tv / bann ] [ toggle-new / tab ]

/maho/ - Magical Circuitboards

Advanced technology is indistinguishable from magic

New Reply

Options
Comment
File
Whitelist Token
Spoiler
Password (For file deletion.)
Markup tags exist for bold, itallics, header, spoiler etc. as listed in " [options] > View Formatting "


[Return] [Bottom] [Catalog]

File:kEe8Q.jpg (50.35 KB,500x375)

 No.1251

Why do you make your programs take logs of activity?

 No.1252

Main reason: Debugging crashes/errors/me being stupid
Second reason: I log the IRC channels I'm in because I often times need to go back and find a link to something posted days ago. It's also helpful in other situations. I can't remember now but a friend was freaking out about something we'd talked about months ago one day. I grepped my logs and copy/pasted what he'd written 6+ months ago to put his mind at ease.

Another time he couldn't remember something he asked me to remind him of. I couldn't remember either. Grepped the logs and didn't have to admit I was drunk and forgetful.

I always assume anything I'm doing over the internet is being logged by someone because it probably is. Looking through the fail2ban/system logs on my servers and workstations is something I try to stay in the habit of to. Since it's fun to watch people attempt to break-in in real time.

Last time logs helped me was just last week. One of my VPSs kept crashing (file server). Couldn't figure out why. I also run an ZNC on that server. Turns out someone on IRC was angry I wouldn't respond to him. Never talked to the guy before but he thought my username was sexy and kept spamming messages on a server I don't really check and only lurk for bug reporting and talking to some devs about projects I contribute to.

Anyway, he got angry and started sending malformed packets to my ZNC because he thought it was my home connection. Was just trying to crash my computer to be an asshole. If it weren't for the logs I would have never put that together since I don't assume the worst in people and I hadn't noticed his messages at that point anyway.

If you're reading this random guy on the internet: You're creepy and I do not have a vagina.

 No.1253

>>1252
sounds like a crazy brazillian

 No.1315

Better to have some idea of what went wrong when something does go wrong, instead of being in the dark. At least that's what I tell myself but never bother to create a logging system for the programs I create.

 No.1317

thread theme

 No.1364

File:__raphiel_shiraha_ainswort….png (6.3 MB,4473x3793)

At work it's mostly for security and compliance requirements but also for debugging.
Though when I'm debugging i usually just use print statements instead of a dedicated logger object.
For personally stuff it's almost strictly debugging and I pretty much only use print statements sprinkled around.

 No.1365

>>1364
what do you mean by security and compliance? Can you elaborate on that

 No.1366

File:e62efad6a4cec2df8abfe84e08….jpg (269.92 KB,1260x2048)

>>1365
Some customers want to aggregate metadata about what users are doing with their web app and do this with some sort of cronjob that uploads logging output to some sort repository for later use. Usually for consumption in some dashboard like https://matomo.org/ It's for the bean counters to count beans and security guys to audit the systems.

 No.1367

>>1366
the group im working for has only internal users and one developer, so I've been wondering if logs are pointless or not. Kinda sounds like it is because I don't do a lot of been counting and just want to cover my back in case of problems

 No.1368

File:__ainz_ooal_gown_and_demiu….jpg (658.45 KB,900x900)

>>1367
> want to cover my back in case of problems
You may still want to generate logs, my understanding of the industry "standard" for "DevSec" advises "meaningful" activity logs are kept for your applications. Even if no one uses them or requires you to upload them somewhere, it still would be a good idea to generate them. Mostly for cover your ass purposes but if the customer doesn't want or care about the feature maybe just put it in the backlog for when you need an easy day.

 No.1370

>>1368
it's what i've been doing for a lot of the analytical tools, but since the most recent features are going to handle multiple digits of money flowing I'm trying to make sure I don't "therac" my way into a problem. Client doesn't have a good idea of software risk so have to insert my own best practices.

 No.1371

Wise old men at two different jobs in two different fields told me the same thing
>99% of this job is covering your own ass
Both were right.




[Return] [Top] [Catalog] [Post a Reply]
Delete Post [ ]

[ home / bans / all ] [ qa / jp ] [ maho ] [ f / ec ] [ b / poll ] [ tv / bann ] [ toggle-new / tab ]