-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathAppender.dart
53 lines (39 loc) · 1.09 KB
/
Appender.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import 'package:log_4_dart_2/log_4_dart_2.dart';
///
/// The basic appender.
///
abstract class Appender {
/// The date the appender was created.
late DateTime created;
/// The loglevel for the appender.
Level? level;
int? clientDepthOffset;
String? lineInfo;
/// The logformat for the appender.
String? format;
/// The type of the appender.
AppenderType? type;
/// The default logging format.
static String defaultFormat = '%d %t %l %m %f';
/// The default date format.
static String defaultDateFormat = 'yyyy-MM-dd HH:mm:ss';
/// The dateformat used for the appender.
String? dateFormat;
bool brackets = false;
///
/// Appending the given [logRecord].
///
void append(LogRecord logRecord);
///
/// Setup the appender. This needs to be called for every appender to configure the appender with the necessary data.
///
Future<void>? init(Map<String, dynamic> config, bool test, DateTime? date);
///
/// Retuns a new instance of the appender.
///
Appender getInstance();
///
/// Returns the type of the appender.
///
String getType();
}