Skip to content

Commit

Permalink
improve documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-kasibhatla committed Feb 27, 2024
1 parent f02ef3b commit f41339c
Showing 1 changed file with 32 additions and 4 deletions.
36 changes: 32 additions & 4 deletions lib/log_plus.dart
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,15 @@ class Logs {
///
/// Use includeTrace to include the stack trace in the log. Note that this will use
/// more memory, and should be used only for debugging purposes
void d(dynamic message, {bool includeTrace = false}) {
void d(

/// Message to log. Can be any type
/// If the message does not have a string representation, it will be printed as is
dynamic message,
{
/// Set to true to include the stack trace in the log. Note that this will use
/// more memory, and should be used only for debugging purposes
bool includeTrace = false}) {
StackTrace trace = StackTrace.empty;
if (includeTrace) {
trace = StackTrace.current;
Expand All @@ -125,7 +133,15 @@ class Logs {
///
/// Use includeTrace to include the stack trace in the log. Note that this will use
/// more memory, and should be used only for debugging purposes
void i(dynamic message, {bool includeTrace = false}) {
void i(

/// Message to log. Can be any type
/// If the message does not have a string representation, it will be printed as is
dynamic message,
{
/// Set to true to include the stack trace in the log. Note that this will use
/// more memory, and should be used only for debugging purposes
bool includeTrace = false}) {
StackTrace trace = StackTrace.empty;
if (includeTrace) {
trace = StackTrace.current;
Expand All @@ -137,7 +153,13 @@ class Logs {
///
/// Use includeTrace to include the stack trace in the log. Note that this will use
/// more memory, and should be used only for debugging purposes
void w(dynamic message, {bool includeTrace = false}) {
void w(
/// Message to log. Can be any type
/// If the message does not have a string representation, it will be printed as is
dynamic message, {
/// Set to true to include the stack trace in the log. Note that this will use
/// more memory, and should be used only for debugging purposes
bool includeTrace = false}) {
StackTrace trace = StackTrace.empty;
if (includeTrace) {
trace = StackTrace.current;
Expand All @@ -149,7 +171,13 @@ class Logs {
///
/// Use includeTrace to include the stack trace in the log. Note that this will use
/// more memory, and should be used only for debugging purposes
void e(dynamic message, {bool includeTrace = false}) {
void e(
/// Message to log. Can be any type
/// If the message does not have a string representation, it will be printed as is
dynamic message, {
/// Set to true to include the stack trace in the log. Note that this will use
/// more memory, and should be used only for debugging purposes
bool includeTrace = false}) {
StackTrace trace = StackTrace.empty;
if (includeTrace) {
trace = StackTrace.current;
Expand Down

0 comments on commit f41339c

Please sign in to comment.