-
Notifications
You must be signed in to change notification settings - Fork 0
Writer
Writer
is a class provided in the package com.jordansamhi.androspecter.printers
. It offers methods for printing various types of messages to the console, each with different prefix indicators.
Writer
can print messages with different types of prefixes, making it easier to distinguish between error, success, warning, and informational messages.
Returns the single instance of the Writer
class. If no instance exists, it's created.
Prints an error message to the console, with a prefix 'x' indicating an error.
Prints a success message to the console, with a prefix '✓' indicating success.
Prints a warning message to the console, with a prefix '!' indicating a warning.
Prints an informational message to the console, with a prefix '*' indicating information.
Writer.v().perror("An error occurred.");
Writer.v().psuccess("Operation completed successfully.");
Writer.v().pwarning("Low disk space.");
Writer.v().pinfo("File saved.");
These examples demonstrate how to use the Writer
class to print various types of messages to the console with distinct prefix indicators.