[READ-ONLY] Mirror of https://github.com/FoxxMD/logging. A typed, opinionated, batteries-included, Pino-based logging solution for backend TS/JS projects foxxmd.github.io/logging
child-logger logging logging-library nodejs pinojs typescript-library
0

Configure Feed

Select the types of activity you want to include in your feed.

feat: Add type for pretty log data with formatted line

FoxxMD (Mar 21, 2024, 1:52 PM EDT) 378f9d83 e8cd4871

+9 -3
+2 -2
package-lock.json
··· 1 1 { 2 2 "name": "@foxxmd/logging", 3 - "version": "0.1.10", 3 + "version": "0.1.11", 4 4 "lockfileVersion": 3, 5 5 "requires": true, 6 6 "packages": { 7 7 "": { 8 8 "name": "@foxxmd/logging", 9 - "version": "0.1.10", 9 + "version": "0.1.11", 10 10 "license": "MIT", 11 11 "dependencies": { 12 12 "pino": "^8.19.0",
+1 -1
package.json
··· 1 1 { 2 2 "name": "@foxxmd/logging", 3 3 "type": "module", 4 - "version": "0.1.10", 4 + "version": "0.1.11", 5 5 "repository": "https://github.com/foxxmd/logging", 6 6 "description": "A typed, opinionated, batteries-included, Pino-based logging solution for backend TS/JS projects", 7 7 "scripts": {
+2
src/index.ts
··· 4 4 LogOptions, 5 5 FileLogOptions, 6 6 LogData, 7 + LogDataPretty, 7 8 LogLevel, 8 9 LOG_LEVEL_NAMES, 9 10 LoggerAppExtras, ··· 23 24 LogLevelStreamEntry, 24 25 LogOptions, 25 26 LogData, 27 + LogDataPretty, 26 28 LogLevel, 27 29 LoggerAppExtras, 28 30 PrettyOptionsExtra
+4
src/types.ts
··· 77 77 msg: string | Error 78 78 } 79 79 80 + export type LogDataPretty = LogData & { 81 + line: string 82 + } 83 + 80 84 export interface PinoRollOptions { 81 85 /** 82 86 * The maximum size of a given rolling log file.