Skip to content

Commit 143f9a3

Browse files
authored
Merge pull request #683 from devforth/next
Next
2 parents 6ef7b51 + 123134d commit 143f9a3

3 files changed

Lines changed: 20 additions & 0 deletions

File tree

adminforth/documentation/docs/tutorial/08-UsageOfLogger.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,15 @@ DB_DEBUG_LEVEL=trace pnpm start
5858

5959
And the logs will be visible as well.
6060

61+
## Single-line logs
6162

63+
By default, log records that contain additional data objects are printed across multiple lines (pretty-printed).
64+
If you prefer each log record to be printed on a single line (for example, to make logs easier to grep or to fit
65+
log collectors), set the `AF_LOG_SINGLE_LINE` environment variable:
6266

67+
```bash
68+
AF_LOG_SINGLE_LINE=true pnpm start
69+
```
6370

71+
Accepted truthy values are `true` and `1`. When unset, logs use the default multi-line pretty format.
6472

adminforth/documentation/docs/tutorial/09-Plugins/21-clone-row.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,14 @@ plugins: [
3636
]
3737
```
3838

39+
## Options
40+
41+
### `makeCloneButtonAsQuickAction`
42+
43+
By default, the Clone action appears in the **three-dots dropdown menu** of each row. Set `makeCloneButtonAsQuickAction: true` to display it as a standalone icon button directly in the row actions area, next to other quick-action buttons like Approve:
44+
45+
```ts
46+
new CloneRow({
47+
makeCloneButtonAsQuickAction: true,
48+
}),
49+
```

adminforth/modules/logger.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ const baseLogger = pino({
66
options: {
77
colorize: true,
88
ignore: 'pid,hostname',
9+
singleLine: process.env.AF_LOG_SINGLE_LINE === 'true' || process.env.AF_LOG_SINGLE_LINE === '1',
910
}
1011
},
1112
});

0 commit comments

Comments
 (0)