@@ -218,6 +218,7 @@ public struct Lumberjack {
218
218
/// - level: The log-level for the message.
219
219
/// - symbol: An override symbol to use for the message.
220
220
/// - category: An override category to use for the message.
221
+ /// - metadata: Additional data to attach to the message.
221
222
/// - file: The calling function.
222
223
/// - function: The calling function.
223
224
/// - line: The calling line number.
@@ -229,6 +230,7 @@ public func LOG(_ message: String,
229
230
level: LogLevel ,
230
231
symbol: String ? = nil ,
231
232
category: String ? = nil ,
233
+ metadata: Message . Metadata ? = nil ,
232
234
file: String = #fileID,
233
235
function: String = #function,
234
236
line: UInt = #line) -> Message ? {
@@ -253,6 +255,7 @@ public func LOG(_ message: String,
253
255
level: level,
254
256
symbol: symbol,
255
257
category: category,
258
+ metadata: metadata,
256
259
file: file,
257
260
function: function,
258
261
line: line
@@ -298,6 +301,7 @@ public func PROXY(_ message: Message,
298
301
/// - target: The target to send the message to.
299
302
/// - symbol: An override symbol to use for the message.
300
303
/// - category: An override category to use for the message.
304
+ /// - metadata: Additional data to attach to the message.
301
305
/// - file: The calling function.
302
306
/// - function: The calling function.
303
307
/// - line: The calling line number.
@@ -308,6 +312,7 @@ public func TRACE(_ message: String,
308
312
target: LogTarget = . default,
309
313
symbol: String ? = nil ,
310
314
category: String ? = nil ,
315
+ metadata: Message . Metadata ? = nil ,
311
316
file: String = #fileID,
312
317
function: String = #function,
313
318
line: UInt = #line) -> Message ? {
@@ -318,6 +323,7 @@ public func TRACE(_ message: String,
318
323
level: . trace,
319
324
symbol: symbol,
320
325
category: category,
326
+ metadata: metadata,
321
327
file: file,
322
328
function: function,
323
329
line: line
@@ -332,6 +338,7 @@ public func TRACE(_ message: String,
332
338
/// - target: The target to send the message to.
333
339
/// - symbol: An override symbol to use for the message.
334
340
/// - category: An override category to use for the message.
341
+ /// - metadata: Additional data to attach to the message.
335
342
/// - file: The calling function.
336
343
/// - function: The calling function.
337
344
/// - line: The calling line number.
@@ -342,6 +349,7 @@ public func DEBUG(_ message: String,
342
349
target: LogTarget = . default,
343
350
symbol: String ? = nil ,
344
351
category: String ? = nil ,
352
+ metadata: Message . Metadata ? = nil ,
345
353
file: String = #fileID,
346
354
function: String = #function,
347
355
line: UInt = #line) -> Message ? {
@@ -352,6 +360,7 @@ public func DEBUG(_ message: String,
352
360
level: . debug,
353
361
symbol: symbol,
354
362
category: category,
363
+ metadata: metadata,
355
364
file: file,
356
365
function: function,
357
366
line: line
@@ -366,6 +375,7 @@ public func DEBUG(_ message: String,
366
375
/// - target: The target to send the message to.
367
376
/// - symbol: An override symbol to use for the message.
368
377
/// - category: An override category to use for the message.
378
+ /// - metadata: Additional data to attach to the message.
369
379
/// - file: The calling function.
370
380
/// - function: The calling function.
371
381
/// - line: The calling line number.
@@ -376,6 +386,7 @@ public func INFO(_ message: String,
376
386
target: LogTarget = . default,
377
387
symbol: String ? = nil ,
378
388
category: String ? = nil ,
389
+ metadata: Message . Metadata ? = nil ,
379
390
file: String = #fileID,
380
391
function: String = #function,
381
392
line: UInt = #line) -> Message ? {
@@ -386,6 +397,7 @@ public func INFO(_ message: String,
386
397
level: . info,
387
398
symbol: symbol,
388
399
category: category,
400
+ metadata: metadata,
389
401
file: file,
390
402
function: function,
391
403
line: line
@@ -400,6 +412,7 @@ public func INFO(_ message: String,
400
412
/// - target: The target to send the message to.
401
413
/// - symbol: An override symbol to use for the message.
402
414
/// - category: An override category to use for the message.
415
+ /// - metadata: Additional data to attach to the message.
403
416
/// - file: The calling function.
404
417
/// - function: The calling function.
405
418
/// - line: The calling line number.
@@ -410,6 +423,7 @@ public func NOTICE(_ message: String,
410
423
target: LogTarget = . default,
411
424
symbol: String ? = nil ,
412
425
category: String ? = nil ,
426
+ metadata: Message . Metadata ? = nil ,
413
427
file: String = #fileID,
414
428
function: String = #function,
415
429
line: UInt = #line) -> Message ? {
@@ -420,6 +434,7 @@ public func NOTICE(_ message: String,
420
434
level: . notice,
421
435
symbol: symbol,
422
436
category: category,
437
+ metadata: metadata,
423
438
file: file,
424
439
function: function,
425
440
line: line
@@ -434,6 +449,7 @@ public func NOTICE(_ message: String,
434
449
/// - target: The target to send the message to.
435
450
/// - symbol: An override symbol to use for the message.
436
451
/// - category: An override category to use for the message.
452
+ /// - metadata: Additional data to attach to the message.
437
453
/// - file: The calling function.
438
454
/// - function: The calling function.
439
455
/// - line: The calling line number.
@@ -444,6 +460,7 @@ public func WARN(_ message: String,
444
460
target: LogTarget = . default,
445
461
symbol: String ? = nil ,
446
462
category: String ? = nil ,
463
+ metadata: Message . Metadata ? = nil ,
447
464
file: String = #fileID,
448
465
function: String = #function,
449
466
line: UInt = #line) -> Message ? {
@@ -454,6 +471,7 @@ public func WARN(_ message: String,
454
471
level: . warning,
455
472
symbol: symbol,
456
473
category: category,
474
+ metadata: metadata,
457
475
file: file,
458
476
function: function,
459
477
line: line
@@ -468,6 +486,7 @@ public func WARN(_ message: String,
468
486
/// - target: The target to send the message to.
469
487
/// - symbol: An override symbol to use for the message.
470
488
/// - category: An override category to use for the message.
489
+ /// - metadata: Additional data to attach to the message.
471
490
/// - file: The calling function.
472
491
/// - function: The calling function.
473
492
/// - line: The calling line number.
@@ -478,6 +497,7 @@ public func ERROR(_ message: String,
478
497
target: LogTarget = . default,
479
498
symbol: String ? = nil ,
480
499
category: String ? = nil ,
500
+ metadata: Message . Metadata ? = nil ,
481
501
file: String = #fileID,
482
502
function: String = #function,
483
503
line: UInt = #line) -> Message ? {
@@ -488,6 +508,7 @@ public func ERROR(_ message: String,
488
508
level: . error,
489
509
symbol: symbol,
490
510
category: category,
511
+ metadata: metadata,
491
512
file: file,
492
513
function: function,
493
514
line: line
@@ -502,13 +523,15 @@ public func ERROR(_ message: String,
502
523
/// - target: The target to send the message to.
503
524
/// - symbol: An override symbol to use for the message.
504
525
/// - category: An override category to use for the message.
526
+ /// - metadata: Additional data to attach to the message.
505
527
/// - file: The calling function.
506
528
/// - function: The calling function.
507
529
/// - line: The calling line number.
508
530
public func FATAL( _ message: String ,
509
531
target: LogTarget = . default,
510
532
symbol: String ? = nil ,
511
533
category: String ? = nil ,
534
+ metadata: Message . Metadata ? = nil ,
512
535
file: String = #fileID,
513
536
function: String = #function,
514
537
line: UInt = #line,
@@ -520,6 +543,7 @@ public func FATAL(_ message: String,
520
543
level: . fatal,
521
544
symbol: symbol,
522
545
category: category,
546
+ metadata: metadata,
523
547
file: file,
524
548
function: function,
525
549
line: line
0 commit comments