Most application logs are write only. The system writes thousands of lines a day, nobody reads them, and when something breaks, a developer spends an hour searching through a file that contains everything and explains nothing. The logs were supposed to help. Instead they became a landfill, and the team treats them the way people treat a landfill, by staying as far away as possible.
This is a strange outcome, because logs are the cheapest diagnostic tool a team has. They cost almost nothing to produce, they run all the time, and they are the first thing you reach for when a customer reports a problem. The reason they fail is not a lack of data. It is a lack of decisions about what the data is for. A log that records everything is a log that tells you nothing, because the signal is buried under the noise.
This post is about building a logging setup that actually works for a small team. Not a platform, not a product pitch, just the decisions that turn a pile of text into something that tells you what broke, before your customers have to tell you.
Most logs are write only
Here is a test. Open the log file for your busiest service and read ten lines at random. Can you tell what the system was doing, who it was doing it for, and whether anything went wrong. If the answer is no, your logs are write only. They exist because someone added a logging call, not because anyone decided what the log should answer.
The usual causes are easy to spot. Every line is at the same level, so an error looks identical to a routine note. The lines have no request identifier, so you cannot follow one customer request through the system. The messages are written for the developer who wrote the code, not for the person who will read them at two in the morning, so they say things like “failed here” instead of saying what failed and why.
The fix starts with a simple rule: every log line should answer three questions. What happened, what was it about, and how bad is it. What happened means the event, in plain words. What was it about means the identifiers that let you find it again, a request id, a customer id, an order id. How bad is it means the level, and the level has to mean something. If everything is an error, nothing is an error.
What to log
Log the boundaries, not the middle. The most useful log lines sit where your system touches something else: a request arrives, a request leaves, a database call happens, a payment is attempted, a file is uploaded. The middle of a function, the part where values are computed and transformed, is the least useful place to log, because it tells you what the code did, not what the system did.
Log the failures with enough detail to act on them. An error line should include the request id, the user or customer affected, the operation that failed, and the error itself. It should not include a full stack trace on every line. The stack trace belongs in the error tracker, where it can be grouped and counted. The log line is the pointer that gets you there.
And log the slow things. A request that took ten seconds is worth logging even if it succeeded, because slow is often the first sign of a problem that will become an outage. Set a threshold for your slowest operations, log anything past it, and look at that list once a week. You will find the next outage in that list more often than anywhere else.
Alerts that mean something
The reason teams ignore alerts is that most alerts are not worth reading. An alert that fires every day for something that is not a problem trains the team to ignore all alerts, including the one that matters. The fix is to alert on symptoms, not on causes. A symptom is something a customer would notice: errors are up, logins are failing, checkout is slow. A cause is something only a developer would notice: disk space is at eighty percent, a queue is growing, a certificate expires in thirty days.
Both matter, but they belong in different places. Symptoms get alerts, because a symptom means someone should look now. Causes get a dashboard or a weekly review, because a cause means someone should look soon. Mixing the two is how a team ends up with forty alerts and zero attention.
A good test for any alert is whether you can write down what the person receiving it should do. If the answer is “look at the dashboard and see,” the alert is not ready. If the answer is “restart the service, then check the error rate,” the alert is ready. Write the action into the alert itself, in one sentence. The person who gets paged at two in the morning will thank you.
A setup that fits a small team
You do not need a logging platform to do this well, though a platform helps once you have more than a few services. A small team can get most of the value with three things: structured logs, a central place to search them, and a short list of alerts. Structured logs mean every line has the same fields, so you can search by request id or by customer instead of grepping text. A central place means the logs from every service land in one searchable spot, so you are not logging into five servers. A short list of alerts means fewer than ten, each one tied to a symptom, each one with an action written down.
Start with one service, the one customers complain about most. Add request ids. Fix the levels so errors mean errors. Write five alerts for the symptoms that matter. Run it for a month. Then do the next service. Teams that try to fix all their logging at once give up, because the job is too big. Teams that fix one service at a time end up with logging that works, because they learned what good looks like on a small scale first.
What to do with the logs you already have
Before you buy a logging platform or rewrite your logging code, spend an hour with the logs you already have. Pick the last incident, the last time a customer reported a problem, and try to reconstruct what happened using only the logs. Time how long it takes. If you can find the answer in ten minutes, your logs are in better shape than you thought, and the fixes are small. If it takes an hour, or if you cannot find the answer at all, you now know exactly what is broken, and you can fix that specific thing instead of rebuilding everything.
This exercise is more useful than any audit, because it tests the logs against the job they are supposed to do. A log that cannot answer a question about a real incident is a log that needs work, and the work is specific: add the missing identifier, fix the level, write a clearer message. A log that can answer the question is a log that is doing its job, and the team should leave it alone and work on something else.
Do this exercise once a quarter, with a different incident each time. Keep a short note about what you found and what you fixed. Over a year, that note becomes a record of how the logging improved, and it becomes the evidence that the team is getting better at the thing that matters most, which is finding out what happened quickly when it matters.
The goal is not perfect observability. The goal is that when a customer calls and says something is broken, someone on your team can find out what happened in five minutes instead of fifty. That is a realistic goal, it is reachable in a month, and it changes how the team feels about being on call. Logs stop being a landfill and start being the first place you look, which is what they were for all along.