-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathmicrolog.properties
More file actions
94 lines (94 loc) · 3.08 KB
/
Copy pathmicrolog.properties
File metadata and controls
94 lines (94 loc) · 3.08 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# microlog.properties instructions.
#
# microlog.appender:
# DatagramAppender: The DatagramAppender uses a DatagramSocket to
# send Datagram to a server. This can be used on
# Android or in a Java SE environment.
#
# FileAppender: An appender to log to a file in on the SDCard,can
# assign with absolute path.
#
# LogCatAppender: With android log entry. always enabled.
#
# SyslogAppender: System log format.
# e.g. <priority> [date time host] tag message
#
#
#
# microlog.formatter:
# SimpleFormatter: A simple formatter that only outputs the level,
# the message and the Throwable object if available
#
# PatternFormatter:
# usually use with [key].pattern
#
# about [pattern] see below:
# The available pattern conversions are:
# %i : the client id
# %c : prints the name of the Logger
# %d : prints the date (absolute time)
# %m : prints the logged message
# %P : prints the priority, i.e. Level of the message.
# %r : prints the relative time of the logging. (The
# first logging is done at time 0.)
# %t : prints the thread name.
# %T : prints the Throwable object.
# %% : prints the '%' sign.
#
# microlog.appender.FileAppender.File:
# This is for set output folder, can set with absolute path.
#
# start with "/" meaning absolute path, otherwise it means a file folder
# where located in context external cache storage's folder.
#
# if start with mnt/sdcard/xxx, this expression means save file into xxx
# folder.
#
# if input is folder, must start with "/", otherwise , all of input will
# be recognized as fileName. If input is file, must with extension.
#
# if wrap file, the files will auto added to "/mnt/sdcard/logs/"
#
# microlog.appender.FileAppender.Options: [%f|%p] [%s]
# extension: format file name. with extensions. [not tested yet.]
# e.g. [auto]
# %a : append file. default: new file. [will delete exist file.]
# %f : use date time format. i.e. "yyyyMMddHHmmss".
# %p : use prefix and plus index to format.
# usage: %p, when use this parameter, key[File] will be
# recognized as prefix.
# result: prefix0.log, prefix1.log.
# %s : wrap size, default is 0M, means not wrap file. unit is M.
# A float number.
#
# arguments example:
# 1. %f-yyyyMMddHHmmss
# 2. %p
# 3. %s-0.4
#
# microlog.level:
# log level.
#
# microlog.tag:
# not used yet.
#
# microlog.rootLogger:
# not supported yet, if not set, will auto use simple style.
# e.g. simple style: will auto add logcat appender.
#
# microlog.addDefaultLogger:
# default true, if appender not set, this will auto add LogCatAppender.
#
#
#
#
#
# microlog.rootLogger=rootLogger
microlog.formatter=PatternFormatter
microlog.formatter.PatternFormatter.pattern=%i %c %d [%P] %m %T
microlog.appender=FileAppender
microlog.appender.FileAppender.File=logs
microlog.appender.FileAppender.Options=%a %f-yyyyMMdd
microlog.level=DEBUG
microlog.addDefaultLogger=true
# microlog.tag=