Skip to content

Commit 17b52fa

Browse files
chore: more cleanups
1 parent c8201d1 commit 17b52fa

20 files changed

+84
-43
lines changed
File renamed without changes.

.gitignore

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Created by https://www.toptal.com/developers/gitignore/api/dart,linux,macos,direnv
2-
# Edit at https://www.toptal.com/developers/gitignore?templates=dart,linux,macos,direnv
32

43
### Dart ###
54
# See https://www.dartlang.org/guides/libraries/private-files
@@ -15,9 +14,6 @@ pubspec.lock
1514
# If you don't generate documentation locally you can remove this line.
1615
doc/api/
1716

18-
# dotenv environment variables file
19-
.env*
20-
2117
# Avoid committing generated Javascript files:
2218
*.dart.js
2319
*.info.json # Produced by the --dump-info flag.
@@ -30,10 +26,6 @@ doc/api/
3026
.flutter-plugins
3127
.flutter-plugins-dependencies
3228

33-
### Dart Patch ###
34-
# dotenv environment variables file
35-
.env
36-
3729
### direnv ###
3830
.direnv
3931
.envrc
@@ -85,5 +77,3 @@ Temporary Items
8577
### macOS Patch ###
8678
# iCloud generated files
8779
*.icloud
88-
89-
# End of https://www.toptal.com/developers/gitignore/api/dart,linux,macos,direnv

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2019-present Roman Vanesyan <roman@vanesyan.com>
3+
Copyright (c) 2019-present Roman Vanesyan <me@romanvanesyan.com>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

example/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

example/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
- `console_example.dart` - Shows how to set up a logger to log to the console
2+
- `file_example.dart` - Demonstrates how to configure log records to be written to a file
3+
- `file_rotation_periodic_example.dart` - Shows how to set up file logging with a time-based rotation policy
4+
- `file_rotation_periodic_sized_example.dart` - Shows how to set up logging to a file with size-based rotation policy
5+
- `global_logger_example.dart` - Demonstrates how to use a global logger
6+
- `global_logger_override_example.dart` - Demonstrates how to replace the default global logger
7+
- `hierarchy/` - Demonstrates a simple hierarchy of loggers
8+
- `pretty_console_example.dart` - Shows how to setup a prettified console logger with colors
9+
- `simple_example.dart` - Shows how to simply log to the console
10+
- `stdout_stderr_example.dart` - Demonstrates how to filter log records and direct them to stdout/stderr based on severity

example/console_example.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/// This example shows how to setup a logger to log to console.
1+
/// This example shows how to set up a logger to log to the console.
22
library;
33

44
import 'package:strlog/formatters.dart' show TextFormatter;

example/file_example.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/// This example demonstrates how to configure log records to be written to a file. The log file is never rotated.
12
library;
23

34
import 'package:strlog/formatters.dart' show TextFormatter;

example/file_rotation_periodic_example.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/// This example shows how to set up file logging with a time-based
2+
/// log rotation policy.
13
library;
24

35
import 'dart:math' show Random;

example/file_rotation_periodic_sized_example.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/// This example shows how to set up logging to a file with rotation policy
2+
/// based on file size.
13
library;
24

35
import 'package:strlog/formatters.dart' show TextFormatter;

example/global_logger_example.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/// This example shows how to use a global logger.
1+
/// This example demonstrates how to use a global logger.
22
library;
33

44
// Import global logger as `log`.

0 commit comments

Comments
 (0)