Skip to content

Commit

Permalink
#1 update README
Browse files Browse the repository at this point in the history
  • Loading branch information
susatthi committed May 1, 2022
1 parent fb167bf commit d58ce29
Showing 1 changed file with 56 additions and 15 deletions.
71 changes: 56 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,68 @@
# roggle
# Roggle

Simple, colorful and easy to expand logger for dart.
Simple, colorful and easy to expand logger for dart.<br>
Inspired by [logger](https://pub.dev/packages/logger).

## Features
## Getting Started

TODO: List what your package can do. Maybe include images, gifs, or videos.
Just create an instance of `Roggle` and start logging:

## Getting started
```dart
final logger = Roggle();
logger.d('Roggle is working!');
```

Instead of a string message, you can also pass other objects like `List`, `Map`, `Set` or `Function`.

## Output

![Roggle](https://user-images.githubusercontent.com/13707135/166134270-a2c6316f-eff1-4533-9022-eb4e6cee0697.png)

TODO: List prerequisites and provide or point to information on how to
start using the package.
# Documentation

## Usage
Roggle's API is almost the same as logger. See [logger](https://pub.dev/packages/logger) for basic usage.

TODO: Include short and useful examples for package users. Add longer examples
to `/example` folder.
## Options

If you use the `SinglePrettyPrinter`, there are more options:

```dart
const like = 'sample';
final logger = Roggle(
printer: SinglePrettyPrinter(
loggerName: '[APP]', // Print a logger name for each log message
colors: true, // Colorful log messages
printCaller: true, // Print a caller for each log message
printEmojis: true, // Print an emoji for each log message
printLabels: true, // Print a level string for each log message
printTime: true, // Print a timestamp for each log message
stackTraceLevel: Level.error, // The current logging level to display stack trace
stackTraceMethodCount: 10, // Number of stack trace methods to display
),
);
```

## MIT License
```
MIT License
## Additional information
Copyright (c) 2022 Keyber Inc.
TODO: Tell users more about the package: where to find more information, how to
contribute to the package, how to file issues, what response they can expect
from the package authors, and more.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```

0 comments on commit d58ce29

Please sign in to comment.