Paste a log or stack trace copied from your console. The tool recognizes the format (Java, Python, Go, Node.js, Spring Boot, JSON logs, Docker, journald) and makes it readable.
Result
Paste a log to see the result.
What it recognizes, format by format
Each format has its own heuristic and its own rendering. Below you will find, for each one, a real input, what the tool does with it and the known limits.
Java stack trace
Input example
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'orderService'
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:633)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:205)
at com.example.shop.Application.main(Application.java:18)
Caused by: java.lang.IllegalStateException: Datasource not configured
at com.example.shop.config.DbConfig.dataSource(DbConfig.java:42)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
... 3 more
Caused by: java.net.ConnectException: Connection refused
at java.base/sun.nio.ch.Net.pollConnect(Native Method)
at com.example.shop.config.DbConfig.ping(DbConfig.java:57)
... 5 more
What it does
It recognizes “Exception in thread”, “at …(File.java:42)” lines, “Caused by:”, “Suppressed:” and “... N more”. It builds the cause tree, highlights the root cause on top and separates application frames from JDK frames.
Known limits
An exception message spanning several lines is read from its first line only. “Suppressed:” entries nested more than one level are reconstructed approximately. Log lines between blocks are not shown.
Python traceback
Input example
Traceback (most recent call last):
File "/srv/app/db.py", line 12, in connect
return psycopg2.connect(dsn)
File "/usr/lib/python3.12/site-packages/psycopg2/__init__.py", line 122, in connect
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
psycopg2.OperationalError: connection refused
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/srv/app/main.py", line 30, in <module>
run()
File "/srv/app/main.py", line 25, in run
raise RuntimeError("database unavailable") from exc
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
RuntimeError: database unavailable
What it does
It recognizes “Traceback (most recent call last):”, “File …, line N, in f” pairs with the source line, and the “The above exception was the direct cause…” and “During handling of the above exception…” chains. It reverses the order: exception on top, then frames from the error outward.
Known limits
Python 3.11+ exception groups (ExceptionGroup, with lines starting with “|”) are not parsed. A multi-line message stops at the first blank line.
Go panic
Input example
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x4a1b2c]
goroutine 18 [chan receive, 2 minutes]:
main.worker(0xc000010000)
/app/worker.go:21 +0x3a
created by main.start in goroutine 1
/app/main.go:30 +0x7d
goroutine 1 [running]:
main.(*Server).Handle(0x0, {0x5f2a40, 0xc000012345})
/app/server.go:42 +0x1c
main.main()
/app/main.go:17 +0x45
exit status 2
What it does
It recognizes “panic:”, “fatal error:”, “[signal …]”, “goroutine N [state]:” headers, function / file.go:line pairs, “created by” and “exit status”. It splits goroutines and puts the one that panicked first.
Known limits
Only the runtime's text output. Race detector reports and pprof dumps are not parsed.
Node.js / V8 stack
Input example
/app/src/server.js:14
throw new TypeError(`handler ${name} is not a function`);
^
TypeError: handler login is not a function
at Router.dispatch (/app/src/server.js:14:11)
at /app/node_modules/express/lib/router/index.js:284:15
at async Promise.all (index 0)
at Module._compile (node:internal/modules/cjs/loader:1554:14)
at node:internal/main/run_main_module:36:49
Node.js v20.11.0
What it does
It recognizes “at function (file:line:column)”, “at async …”, anonymous frames, the error code in square brackets, the source line Node prints before the error and “Node.js vXX”. Internal frames (“node:internal”) and node_modules frames can be hidden.
Known limits
Source maps are not applied: a minified bundle stays unreadable. A “[cause]” printed by Node shows up as a separate error.
Structured JSON logs
Input example
{"level":"info","ts":1761818400.123,"logger":"api","msg":"request served","status":200,"path":"/orders","ms":12}
{"level":"warn","ts":1761818401.5,"logger":"api","msg":"slow query","path":"/orders","ms":2310}
{"level":"error","ts":1761818402.9,"logger":"db","msg":"connection lost","error":"EOF","stacktrace":"db.Pool.Get\n\t/app/db/pool.go:88"}
{"level":"info","ts":1761818403.0,"logger":"api","msg":"truncated line
{"level":"info","ts":1761818404.0,"logger":"api","msg":"recovered","retries":3}
What it does
One object per line (Logback, Winston, pino, zap, structlog) or a JSON array. It recognizes the common names for time, level, message and logger, converts numeric timestamps and shows only the columns that really exist. A broken line in the middle is flagged, not discarded.
Known limits
Nested objects appear as compact JSON, cut at 300 characters. A stack inside a field (stack, stacktrace, exception) is shown as text, not parsed.
Spring Boot logs
Input example
2026-10-30T10:00:00.123+01:00 INFO 12345 --- [shop] [ main] o.s.b.w.e.t.TomcatWebServer : Tomcat started on port 8080 (http)
2026-10-30T10:00:01.456+01:00 WARN 12345 --- [shop] [nio-8080-exec-1] c.e.shop.web.OrderController : Slow request: 2310 ms
2026-10-30T10:00:02.789+01:00 ERROR 12345 --- [shop] [nio-8080-exec-2] c.e.shop.service.OrderService : Payment failed
java.lang.IllegalStateException: gateway timeout
at com.example.shop.service.OrderService.pay(OrderService.java:77)
at com.example.shop.web.OrderController.checkout(OrderController.java:31)
Caused by: java.net.SocketTimeoutException: Read timed out
at java.base/sun.nio.ch.NioSocketImpl.timedRead(NioSocketImpl.java:288)
... 2 more
What it does
It splits “date LEVEL pid --- [thread] logger : message”, including the application name added in Spring Boot 3.4, attaches the Java stack that follows to each entry and expands abbreviated class names when the prefix is unambiguous (for example o.s.b. = org.springframework.boot).
Known limits
Only the default Spring Boot layout, not custom Logback patterns. An abbreviated name is not reversible in general: ambiguous segments stay abbreviated and the tool says so.
If at least 60% of the lines carry the prefix of “docker compose logs” (“web-1 | …”) or of journalctl (“Oct 30 10:00:00 host unit[123]: …”), the prefix is stripped before parsing and summarized in one line, so the format below is recognized.
Known limits
With fewer than 60% prefixed lines the prefix stays in the text. Docker lines with timestamps (-t) keep the timestamp as part of the message.
Come utilizzare Log & Stack Trace Formatter
1
Paste the log
Copy the stack trace or log from your console, terminal or a file and paste it into the box. You do not need to pick the language.
2
Check the detected format
Above the result you will see the format the heuristic picked and the signals that decided it. If it is wrong, force it from the Format menu.
3
Read and copy
Hide internal frames to see only your code, then copy the formatted text to paste it into an issue or a message.
Suggerimenti
To understand a Java error start from the root cause, not from the first line: the first one is often just a framework wrapper.
If you paste logs from several containers the prefix is removed but the names stay in the summary, which helps you see which service failed.
Domande frequenti
How do I read a Java stack trace with many “Caused by” entries?
Go to the end of the chain: the last “Caused by” is the root cause, the error that actually happened. The exceptions above it are wrappers added by upper layers. The number in “... N more” says how many frames are identical to those of the enclosing exception, so they are not repeated.
Why does a Python traceback read from the bottom?
Python prints calls in chronological order, from outermost to innermost, and puts the exception last. The line that matters is therefore the last one. The tool reverses the order: exception on top, then frames from the point of failure outward.
What does goroutine [running] mean in a Go panic?
The state in square brackets says what each goroutine was doing when the panic hit. The one in running state is the one that panicked: its stack holds the point of failure. The others are waiting and help you see who was blocked on what.
Is my log sent to a server?
No. The analysis is JavaScript running in the page: the pasted text is not sent, stored or logged. The tool does not redact secrets though: if you copy the result into a public issue, remove tokens, passwords and addresses first.
How does it read Docker and journald logs?
If most lines carry the docker compose logs or journalctl prefix, it removes it, summarizes containers, host and units, and parses the rest as a normal log. That way a stack trace that went through Docker is still recognized as a stack trace.
Why is the detected format wrong or shown as plain text?
Detection is a heuristic over the first 4000 lines. A log with a single frame, a custom Logback pattern or a mangled text may slip through. Pick the format from the menu: a forced format always wins and the tool tells you when it found nothing.