nRF24 / RF24Log

A nice logging library for Arduino devices
GNU General Public License v2.0
7 stars 4 forks source link

Proposed solution for #8 #9

Closed wmarkow closed 3 years ago

wmarkow commented 3 years ago

I propose a preliminary solution for #8 - just as @2bndy5 suggested.

wmarkow commented 3 years ago

@2bndy5, after the changes the AllLogsLevelsLogger.ino gives the following test output:

         0; INFO  ;RF24LogExample;RF24Log/examples/AllLogLevelsLogger
         0;Lvl   0;RF24LogExample;This is a log message with level 0
         6;Lvl   1;RF24LogExample;This is a log message with level 1
        12;Lvl   2;RF24LogExample;This is a log message with level 2
        18;Lvl   3;RF24LogExample;This is a log message with level 3
        23;Lvl   4;RF24LogExample;This is a log message with level 4
        29;Lvl   5;RF24LogExample;This is a log message with level 5
        35;Lvl   6;RF24LogExample;This is a log message with level 6
        41;Lvl   7;RF24LogExample;This is a log message with level 7
        48;ERROR  ;RF24LogExample;This is a log message with level 8
        53;ERROR:1;RF24LogExample;This is a log message with level 9
        59;ERROR:2;RF24LogExample;This is a log message with level 10
        65;ERROR:3;RF24LogExample;This is a log message with level 11
        71;ERROR:4;RF24LogExample;This is a log message with level 12
        77;ERROR:5;RF24LogExample;This is a log message with level 13
        83;ERROR:6;RF24LogExample;This is a log message with level 14
        90;ERROR:7;RF24LogExample;This is a log message with level 15
        96; WARN  ;RF24LogExample;This is a log message with level 16
       102; WARN:1;RF24LogExample;This is a log message with level 17
       107; WARN:2;RF24LogExample;This is a log message with level 18
       113; WARN:3;RF24LogExample;This is a log message with level 19
       119; WARN:4;RF24LogExample;This is a log message with level 20
       125; WARN:5;RF24LogExample;This is a log message with level 21
       132; WARN:6;RF24LogExample;This is a log message with level 22
       138; WARN:7;RF24LogExample;This is a log message with level 23
       144; INFO  ;RF24LogExample;This is a log message with level 24
       150; INFO:1;RF24LogExample;This is a log message with level 25
       156; INFO:2;RF24LogExample;This is a log message with level 26
       161; INFO:3;RF24LogExample;This is a log message with level 27 
       167; INFO:4;RF24LogExample;This is a log message with level 28
       174; INFO:5;RF24LogExample;This is a log message with level 29
       180; INFO:6;RF24LogExample;This is a log message with level 30
       186; INFO:7;RF24LogExample;This is a log message with level 31
       192;DEBUG  ;RF24LogExample;This is a log message with level 32
       198;DEBUG:1;RF24LogExample;This is a log message with level 33
       204;DEBUG:2;RF24LogExample;This is a log message with level 34
       210;DEBUG:3;RF24LogExample;This is a log message with level 35
       216;DEBUG:4;RF24LogExample;This is a log message with level 36
       222;DEBUG:5;RF24LogExample;This is a log message with level 37
       228;DEBUG:6;RF24LogExample;This is a log message with level 38
       234;DEBUG:7;RF24LogExample;This is a log message with level 39
       240;Lvl  40;RF24LogExample;This is a log message with level 40
       246;Lvl  41;RF24LogExample;This is a log message with level 41
       252;Lvl  42;RF24LogExample;This is a log message with level 42
       259;Lvl  43;RF24LogExample;This is a log message with level 43
       265;Lvl  44;RF24LogExample;This is a log message with level 44
       271;Lvl  45;RF24LogExample;This is a log message with level 45
       276;Lvl  46;RF24LogExample;This is a log message with level 46
       282;Lvl  47;RF24LogExample;This is a log message with level 47
       288;Lvl  48;RF24LogExample;This is a log message with level 48
       294;Lvl  49;RF24LogExample;This is a log message with level 49
       301;Lvl  50;RF24LogExample;This is a log message with level 50
       307;Lvl  51;RF24LogExample;This is a log message with level 51
       313;Lvl  52;RF24LogExample;This is a log message with level 52
       319;Lvl  53;RF24LogExample;This is a log message with level 53
       325;Lvl  54;RF24LogExample;This is a log message with level 54
       330;Lvl  55;RF24LogExample;This is a log message with level 55
       336;Lvl  56;RF24LogExample;This is a log message with level 56
       343;Lvl  57;RF24LogExample;This is a log message with level 57
       349;Lvl  58;RF24LogExample;This is a log message with level 58
       355;Lvl  59;RF24LogExample;This is a log message with level 59 
       361;Lvl  60;RF24LogExample;This is a log message with level 60
       367;Lvl  61;RF24LogExample;This is a log message with level 61
       373;Lvl  62;RF24LogExample;This is a log message with level 62
       379;Lvl  63;RF24LogExample;This is a log message with level 63
       385;Lvl  64;RF24LogExample;This is a log message with level 64
       391;Lvl  65;RF24LogExample;This is a log message with level 65
       397;Lvl  66;RF24LogExample;This is a log message with level 66
       403;Lvl  67;RF24LogExample;This is a log message with level 67
       409;Lvl  68;RF24LogExample;This is a log message with level 68
       415;Lvl  69;RF24LogExample;This is a log message with level 69
       421;Lvl  70;RF24LogExample;This is a log message with level 70
       428;Lvl  71;RF24LogExample;This is a log message with level 71
       434;Lvl  72;RF24LogExample;This is a log message with level 72
       440;Lvl  73;RF24LogExample;This is a log message with level 73
       445;Lvl  74;RF24LogExample;This is a log message with level 74
       451;Lvl  75;RF24LogExample;This is a log message with level 75
       457;Lvl  76;RF24LogExample;This is a log message with level 76
       463;Lvl  77;RF24LogExample;This is a log message with level 77
       470;Lvl  78;RF24LogExample;This is a log message with level 78
       476;Lvl  79;RF24LogExample;This is a log message with level 79
       482;Lvl  80;RF24LogExample;This is a log message with level 80
       488;Lvl  81;RF24LogExample;This is a log message with level 81
       494;Lvl  82;RF24LogExample;This is a log message with level 82
       499;Lvl  83;RF24LogExample;This is a log message with level 83
       505;Lvl  84;RF24LogExample;This is a log message with level 84
       512;Lvl  85;RF24LogExample;This is a log message with level 85
       518;Lvl  86;RF24LogExample;This is a log message with level 86
       524;Lvl  87;RF24LogExample;This is a log message with level 87
       530;Lvl  88;RF24LogExample;This is a log message with level 88
       536;Lvl  89;RF24LogExample;This is a log message with level 89
       542;Lvl  90;RF24LogExample;This is a log message with level 90
       548;Lvl  91;RF24LogExample;This is a log message with level 91 
       555;Lvl  92;RF24LogExample;This is a log message with level 92
       560;Lvl  93;RF24LogExample;This is a log message with level 93
       566;Lvl  94;RF24LogExample;This is a log message with level 94
       572;Lvl  95;RF24LogExample;This is a log message with level 95
       578;Lvl  96;RF24LogExample;This is a log message with level 96
       584;Lvl  97;RF24LogExample;This is a log message with level 97
       590;Lvl  98;RF24LogExample;This is a log message with level 98
       596;Lvl  99;RF24LogExample;This is a log message with level 99
       603;Lvl 100;RF24LogExample;This is a log message with level 100 
       609;Lvl 101;RF24LogExample;This is a log message with level 101
       615;Lvl 102;RF24LogExample;This is a log message with level 102
       621;Lvl 103;RF24LogExample;This is a log message with level 103
       627;Lvl 104;RF24LogExample;This is a log message with level 104 
       633;Lvl 105;RF24LogExample;This is a log message with level 105
       640;Lvl 106;RF24LogExample;This is a log message with level 106
       646;Lvl 107;RF24LogExample;This is a log message with level 107
       651;Lvl 108;RF24LogExample;This is a log message with level 108 
       657;Lvl 109;RF24LogExample;This is a log message with level 109
       663;Lvl 110;RF24LogExample;This is a log message with level 110
       669;Lvl 111;RF24LogExample;This is a log message with level 111
       675;Lvl 112;RF24LogExample;This is a log message with level 112 
       681;Lvl 113;RF24LogExample;This is a log message with level 113
       688;Lvl 114;RF24LogExample;This is a log message with level 114
       694;Lvl 115;RF24LogExample;This is a log message with level 115
       700;Lvl 116;RF24LogExample;This is a log message with level 116 
       706;Lvl 117;RF24LogExample;This is a log message with level 117
       712;Lvl 118;RF24LogExample;This is a log message with level 118
       718;Lvl 119;RF24LogExample;This is a log message with level 119
       724;Lvl 120;RF24LogExample;This is a log message with level 120 
       731;Lvl 121;RF24LogExample;This is a log message with level 121
       737;Lvl 122;RF24LogExample;This is a log message with level 122
       743;Lvl 123;RF24LogExample;This is a log message with level 123
       749;Lvl 124;RF24LogExample;This is a log message with level 124 
       755;Lvl 125;RF24LogExample;This is a log message with level 125
       761;Lvl 126;RF24LogExample;This is a log message with level 126
       768;Lvl 127;RF24LogExample;This is a log message with level 127
       774;Lvl 128;RF24LogExample;This is a log message with level 128 
       780;Lvl 129;RF24LogExample;This is a log message with level 129
       786;Lvl 130;RF24LogExample;This is a log message with level 130
       792;Lvl 131;RF24LogExample;This is a log message with level 131
       798;Lvl 132;RF24LogExample;This is a log message with level 132 
       804;Lvl 133;RF24LogExample;This is a log message with level 133
       811;Lvl 134;RF24LogExample;This is a log message with level 134
       817;Lvl 135;RF24LogExample;This is a log message with level 135
       823;Lvl 136;RF24LogExample;This is a log message with level 136 
       829;Lvl 137;RF24LogExample;This is a log message with level 137
       835;Lvl 138;RF24LogExample;This is a log message with level 138
       841;Lvl 139;RF24LogExample;This is a log message with level 139
       847;Lvl 140;RF24LogExample;This is a log message with level 140 
       854;Lvl 141;RF24LogExample;This is a log message with level 141
       860;Lvl 142;RF24LogExample;This is a log message with level 142
       866;Lvl 143;RF24LogExample;This is a log message with level 143
       872;Lvl 144;RF24LogExample;This is a log message with level 144 
       878;Lvl 145;RF24LogExample;This is a log message with level 145
       884;Lvl 146;RF24LogExample;This is a log message with level 146
       890;Lvl 147;RF24LogExample;This is a log message with level 147
       897;Lvl 148;RF24LogExample;This is a log message with level 148 
       903;Lvl 149;RF24LogExample;This is a log message with level 149
       908;Lvl 150;RF24LogExample;This is a log message with level 150
       914;Lvl 151;RF24LogExample;This is a log message with level 151
       920;Lvl 152;RF24LogExample;This is a log message with level 152 
       926;Lvl 153;RF24LogExample;This is a log message with level 153
       932;Lvl 154;RF24LogExample;This is a log message with level 154
       939;Lvl 155;RF24LogExample;This is a log message with level 155
       945;Lvl 156;RF24LogExample;This is a log message with level 156 
       951;Lvl 157;RF24LogExample;This is a log message with level 157
       957;Lvl 158;RF24LogExample;This is a log message with level 158
       963;Lvl 159;RF24LogExample;This is a log message with level 159
       969;Lvl 160;RF24LogExample;This is a log message with level 160 
       975;Lvl 161;RF24LogExample;This is a log message with level 161
       982;Lvl 162;RF24LogExample;This is a log message with level 162
       988;Lvl 163;RF24LogExample;This is a log message with level 163
       994;Lvl 164;RF24LogExample;This is a log message with level 164 
      1000;Lvl 165;RF24LogExample;This is a log message with level 165
      1006;Lvl 166;RF24LogExample;This is a log message with level 166
      1012;Lvl 167;RF24LogExample;This is a log message with level 167
      1018;Lvl 168;RF24LogExample;This is a log message with level 168 
      1025;Lvl 169;RF24LogExample;This is a log message with level 169
      1031;Lvl 170;RF24LogExample;This is a log message with level 170
      1037;Lvl 171;RF24LogExample;This is a log message with level 171
      1043;Lvl 172;RF24LogExample;This is a log message with level 172 
      1049;Lvl 173;RF24LogExample;This is a log message with level 173
      1055;Lvl 174;RF24LogExample;This is a log message with level 174
      1061;Lvl 175;RF24LogExample;This is a log message with level 175
      1068;Lvl 176;RF24LogExample;This is a log message with level 176 
      1074;Lvl 177;RF24LogExample;This is a log message with level 177
      1080;Lvl 178;RF24LogExample;This is a log message with level 178
      1086;Lvl 179;RF24LogExample;This is a log message with level 179
      1092;Lvl 180;RF24LogExample;This is a log message with level 180 
      1098;Lvl 181;RF24LogExample;This is a log message with level 181
      1104;Lvl 182;RF24LogExample;This is a log message with level 182
      1111;Lvl 183;RF24LogExample;This is a log message with level 183
      1117;Lvl 184;RF24LogExample;This is a log message with level 184 
      1123;Lvl 185;RF24LogExample;This is a log message with level 185
      1129;Lvl 186;RF24LogExample;This is a log message with level 186
      1135;Lvl 187;RF24LogExample;This is a log message with level 187
      1141;Lvl 188;RF24LogExample;This is a log message with level 188 
      1147;Lvl 189;RF24LogExample;This is a log message with level 189
      1154;Lvl 190;RF24LogExample;This is a log message with level 190
      1160;Lvl 191;RF24LogExample;This is a log message with level 191
      1166;Lvl 192;RF24LogExample;This is a log message with level 192 
      1171;Lvl 193;RF24LogExample;This is a log message with level 193
      1177;Lvl 194;RF24LogExample;This is a log message with level 194
      1183;Lvl 195;RF24LogExample;This is a log message with level 195
      1189;Lvl 196;RF24LogExample;This is a log message with level 196 
      1196;Lvl 197;RF24LogExample;This is a log message with level 197
      1202;Lvl 198;RF24LogExample;This is a log message with level 198
      1208;Lvl 199;RF24LogExample;This is a log message with level 199
      1214;Lvl 200;RF24LogExample;This is a log message with level 200 
      1220;Lvl 201;RF24LogExample;This is a log message with level 201
      1226;Lvl 202;RF24LogExample;This is a log message with level 202
      1232;Lvl 203;RF24LogExample;This is a log message with level 203
      1239;Lvl 204;RF24LogExample;This is a log message with level 204 
      1245;Lvl 205;RF24LogExample;This is a log message with level 205
      1251;Lvl 206;RF24LogExample;This is a log message with level 206
      1257;Lvl 207;RF24LogExample;This is a log message with level 207
      1263;Lvl 208;RF24LogExample;This is a log message with level 208 
      1269;Lvl 209;RF24LogExample;This is a log message with level 209
      1275;Lvl 210;RF24LogExample;This is a log message with level 210
      1282;Lvl 211;RF24LogExample;This is a log message with level 211
      1288;Lvl 212;RF24LogExample;This is a log message with level 212 
      1294;Lvl 213;RF24LogExample;This is a log message with level 213
      1300;Lvl 214;RF24LogExample;This is a log message with level 214
      1306;Lvl 215;RF24LogExample;This is a log message with level 215
      1312;Lvl 216;RF24LogExample;This is a log message with level 216 
      1318;Lvl 217;RF24LogExample;This is a log message with level 217
      1325;Lvl 218;RF24LogExample;This is a log message with level 218
      1331;Lvl 219;RF24LogExample;This is a log message with level 219
      1337;Lvl 220;RF24LogExample;This is a log message with level 220 
      1343;Lvl 221;RF24LogExample;This is a log message with level 221
      1349;Lvl 222;RF24LogExample;This is a log message with level 222
      1355;Lvl 223;RF24LogExample;This is a log message with level 223
      1361;Lvl 224;RF24LogExample;This is a log message with level 224 
      1368;Lvl 225;RF24LogExample;This is a log message with level 225
      1374;Lvl 226;RF24LogExample;This is a log message with level 226
      1380;Lvl 227;RF24LogExample;This is a log message with level 227
      1386;Lvl 228;RF24LogExample;This is a log message with level 228 
      1392;Lvl 229;RF24LogExample;This is a log message with level 229
      1398;Lvl 230;RF24LogExample;This is a log message with level 230
      1404;Lvl 231;RF24LogExample;This is a log message with level 231
      1411;Lvl 232;RF24LogExample;This is a log message with level 232 
      1417;Lvl 233;RF24LogExample;This is a log message with level 233
      1423;Lvl 234;RF24LogExample;This is a log message with level 234
      1429;Lvl 235;RF24LogExample;This is a log message with level 235
      1434;Lvl 236;RF24LogExample;This is a log message with level 236 
      1440;Lvl 237;RF24LogExample;This is a log message with level 237
      1446;Lvl 238;RF24LogExample;This is a log message with level 238
      1453;Lvl 239;RF24LogExample;This is a log message with level 239
      1459;Lvl 240;RF24LogExample;This is a log message with level 240 
      1465;Lvl 241;RF24LogExample;This is a log message with level 241
      1471;Lvl 242;RF24LogExample;This is a log message with level 242
      1477;Lvl 243;RF24LogExample;This is a log message with level 243
      1483;Lvl 244;RF24LogExample;This is a log message with level 244 
      1489;Lvl 245;RF24LogExample;This is a log message with level 245
      1496;Lvl 246;RF24LogExample;This is a log message with level 246
      1502;Lvl 247;RF24LogExample;This is a log message with level 247
      1508;Lvl 248;RF24LogExample;This is a log message with level 248 
      1514;Lvl 249;RF24LogExample;This is a log message with level 249
      1520;Lvl 250;RF24LogExample;This is a log message with level 250
      1526;Lvl 251;RF24LogExample;This is a log message with level 251
      1532;Lvl 252;RF24LogExample;This is a log message with level 252 
      1539;Lvl 253;RF24LogExample;This is a log message with level 253
      1545;Lvl 254;RF24LogExample;This is a log message with level 254
      1551;Lvl 255;RF24LogExample;This is a log message with level 255