The Log class:

API for sending log output.

Generally, use the Log.v() Log.d() Log.i() Log.w() and Log.e() methods.

The order in terms of verbosity, from least to most is ERROR, WARN, INFO, DEBUG, VERBOSE. Verbose should never be compiled into an application except during development. Debug logs are compiled in but stripped at runtime. Error, warning and info logs are always kept.

Outside of Android, System.out.println(String msg) is used.

Answer from nhaarman on Stack Overflow
Top answer
1 of 4
141

The Log class:

API for sending log output.

Generally, use the Log.v() Log.d() Log.i() Log.w() and Log.e() methods.

The order in terms of verbosity, from least to most is ERROR, WARN, INFO, DEBUG, VERBOSE. Verbose should never be compiled into an application except during development. Debug logs are compiled in but stripped at runtime. Error, warning and info logs are always kept.

Outside of Android, System.out.println(String msg) is used.

2 of 4
25

Use the Android logging utility.

http://developer.android.com/reference/android/util/Log.html

Log has a bunch of static methods for accessing the different log levels. The common thread is that they always accept at least a tag and a log message.

Tags are a way of filtering output in your log messages. You can use them to wade through the thousands of log messages you'll see and find the ones you're specifically looking for.

You use the Log functions in Android by accessing the Log.x objects (where the x method is the log level). For example:

CopyLog.d("MyTagGoesHere", "This is my log message at the debug level here");
Log.e("MyTagGoesHere", "This is my log message at the error level here");

I usually make it a point to make the tag my class name so I know where the log message was generated too. Saves a lot of time later on in the game.

You can see your log messages using the logcat tool for android:

Copyadb logcat

Or by opening the eclipse Logcat view by going to the menu bar

CopyWindow->Show View->Other then select the Android menu and the LogCat view
🌐
Jazz Community Site
jazz.net › forum › questions › 137262 › consolelog-in-java-extension
Console.log in Java extension? - Jazz Forum
January 2, 2014 - I just start my normal server in debug mode. then connect from Eclipse to a Remote app. debug both client and server at the same time. only case where I can't do this is when I develop a jazz client side plugin, ten I need to start another eclipse locally in debug mode. just add one line to the server.startup.bat as the last JAVA_OPTS line set JAVA_OPTS=%JAVA_OPTS% -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=3388 then the remote app port is 3388 · Register or log in to post your answer.
🌐
Codecademy
codecademy.com › docs › java › output › .println()
Java | Output | .println() | Codecademy
November 5, 2022 - Prints its argument to the console followed by a new line.
🌐
Oracle
docs.oracle.com › javase › 8 › docs › technotes › guides › deploy › console_trace_log.html
Java Console, Tracing, and Logging
April 21, 2026 - This topic describes the Java Console, a debugging aid that redirects any System.out and System.err to the console window. The console is available for applets running with Java Plug-in and applications running with Java Web Start.
🌐
Five9 Community
community.five9.com › s › article › VCC-Getting-Java-Console-Logs
VCC | How to collect Java Console Logs?
This article will guide you on how to get Java logs for Five9 Java based applications that can be helpful when investigating Five9 Java based applications.
🌐
Sentry
blog.sentry.io › a-guide-to-logging-and-debugging-in-java
Logging & Debugging in Java - Guide | Sentry Blog
September 25, 2025 - Unsaved console logs disappear when the program stops, making it difficult to keep a history of what happened. They also don’t allow you to categorize messages by severity, which makes it hard to spot critical issues in the output. Basic logging in Java can be achieved using the built-in java.util.logging package.
🌐
Oracle
java.com › en › download › help › javaconsole.html
How do I enable and view the Java Console?
The Java Console provides information about the Java version, user home directory, and any error message that occurs while running an applet or application.
Find elsewhere
🌐
Baeldung
baeldung.com › home › logging › introduction to java logging
Introduction to Java Logging | Baeldung
February 11, 2026 - A quick intro to logging in Java - the libraries, the configuration details as well as pros and cons of each solution.
🌐
AWS
aws.amazon.com › products › management and governance › management console
Manage AWS Resources - AWS Management Console - AWS
3 weeks ago - Manage your AWS cloud resources easily through a web-based interface using the AWS Management Console.
🌐
GeeksforGeeks
geeksforgeeks.org › java › system-out-println-in-java
System.out.println in Java - GeeksforGeeks
Used to display text, variables, and expressions on the console. Automatically adds a newline after printing the output. Commonly used for debugging, testing, and displaying program results.
Published   June 2, 2026
🌐
Android Developers
developer.android.com › api reference › log
Log | API reference | Android Developers
Skip to main content · English · Deutsch · Español – América Latina · Français · Indonesia · Polski · Português – Brasil · Tiếng Việt · 中文 – 简体
🌐
Keycloak
keycloak.org
Keycloak
Enabling login with social networks is easy to add through the admin console. It's just a matter of selecting the social network you want to add.
🌐
Verve AI
vervecopilot.com › interview-questions › how-can-mastering-console-log-in-java-transform-your-interview-performance
How Can Mastering Console Log In Java Transform Your Interview… · Java Transform Your Interview Perfo… · Interview Q&A | Verve AI
August 28, 2025 - At its core, `console log in java` refers to using Java’s `System.out` class to print information directly to the console. This simple act provides immediate feedback on your program's state, making it invaluable for debugging and understanding program flow.
🌐
Coderanch
coderanch.com › t › 485476 › java › Saving-Java-Console-output-file
Saving Java Console output to file (Java in General forum at Coderanch)
A way to make the console persist ... extensive Swing experience ... The log file is saved as "plugin#####.log" in C:\Documents and Settings\[your login]\Application Data\Sun\Java\Deployment\log....
🌐
Dot Net Perls
dotnetperls.com › console-java
Java - Console Examples - Dot Net Perls
July 27, 2023 - import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Program { public static void main(String[] args) throws IOException { // Get BufferedReader for System.in. BufferedReader in = new BufferedReader( new InputStreamReader(System.in)); // Read line from console.
🌐
SigNoz
signoz.io › guides › java logging: from println to production-ready logs
Java Logging: Setup, Log4j2, SLF4J & Monitoring | SigNoz
July 10, 2024 - Now you can see exactly when things happened, which thread was involved, the severity level, and which class logged the message. This context makes debugging significantly easier. Console output works great during development, but production systems need persistent logs that survive server restarts and can be analyzed later.
🌐
Minecraft
minecraft.net › en-us › login
Log in | Minecraft
Explore your own unique world, survive the night, and create anything you can imagine · Explore the history of Minecraft updates
🌐
GitHub
github.com › joeferner › node-java › issues › 409
Redirecting java console logs to stdout · Issue #409 · joeferner/node-java
September 25, 2017 - My java application does redirect output to stdout. When in node I handle the console logging to file doing something like var access = require('fs').createWriteStream('./var/log/api.log'); process.stdout.write = process.stderr.write = a...
Author   joeferner
🌐
Forward
forward.com.au › javaProgramming › javaGuiTips › javaLogging.html
Forward - Java Programming - How to Set up Java Logging
Now that the default ConsoleHandler is configured, the next task is the detailed logging. This detailed logging is used for debugging, both during development and after release. It is controlled by the logging.properties file. When the application is started using the command line · java -Djava.util.logging.config.file=logging.properties au.com.forward.ExampleLoggingApplication