xiaozuoassistant 0.1.63 → 0.1.64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -31,14 +31,14 @@ const fileTransport = new winston.transports.DailyRotateFile({
31
31
  symlinkName: 'app.log',
32
32
  level: 'info'
33
33
  });
34
- const transports = [fileTransport];
35
- // Only add Console transport if NOT in production, or if explicitly requested
36
- // This prevents double logging to stdout.log in daemon mode.
37
- if (process.env.NODE_ENV !== 'production') {
38
- transports.push(new winston.transports.Console({
39
- format: winston.format.combine(winston.format.colorize(), winston.format.simple())
40
- }));
41
- }
34
+ const transports = [
35
+ fileTransport,
36
+ new winston.transports.Console({
37
+ format: winston.format.combine(winston.format.timestamp({ format: 'YYYY-MM-DD HH:mm:ss' }), winston.format.colorize(), winston.format.printf(({ timestamp, level, message, stack }) => {
38
+ return `[${timestamp}] ${level}: ${message} ${stack || ''}`;
39
+ }))
40
+ })
41
+ ];
42
42
  export const logger = winston.createLogger({
43
43
  level: 'info',
44
44
  format: logFormat,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "xiaozuoassistant",
3
3
  "private": false,
4
4
  "description": "Your personal, locally-hosted AI assistant for office productivity.",
5
- "version": "0.1.63",
5
+ "version": "0.1.64",
6
6
  "author": "mantle.lau",
7
7
  "license": "MIT",
8
8
  "repository": {