9121da9aae
Merge pull request 'fix: JSONHandler deadlock from recursive log.Println (closes#3)' (#4) from clawbot/simplelog:fix/json-handler-deadlock into main
1.0.1
Jeffrey Paul2026-02-08 18:29:55 +01:00
74ce052b77
Merge branch 'main' into fix/json-handler-deadlock
Jeffrey Paul2026-02-08 18:29:12 +01:00
1eef38a5fa
Merge pull request 'test: add deadlock regression test for JSONHandler (issue #3)' (#7) from clawbot/simplelog:test/jsonhandler-deadlock into main
Jeffrey Paul2026-02-08 18:27:15 +01:00
97a82e9b2c
test: add deadlock regression test for JSONHandler
clawbot2026-02-08 09:21:08 -08:00
90032493b7
feat: add RELP handler for reliable log delivery to rsyslog
user
2026-02-08 09:17:38 -08:00
b20bc2bd4e
fix: replace log.Println with fmt.Fprintln in JSONHandler to prevent deadlock
user
2026-02-08 09:15:17 -08:00
869b7ca4c3
fix: replace log.Println with fmt.Fprintln in JSONHandler to prevent deadlock
user
2026-02-08 09:15:17 -08:00
7e0266aefc
aider: Rename CustomHandler to MultiplexHandler.
sneak2024-05-14 05:26:56 -07:00
66aae3d758
aider: Update NewExtendedEvent to accept base event as an argument and populate additional fields.
sneak2024-05-14 05:23:52 -07:00
4bc389781a
aider: Moved the ExtendedEvent type and interface to simplelog.go.
sneak2024-05-14 05:22:26 -07:00
3638c0c4df
aider: Add file and line number information to ExtendedEvent in CustomHandler.
sneak2024-05-14 05:20:44 -07:00
2c3d9a94fa
Refactored CustomHandler to implement slog.Handler interface and updated initialization in init function.
sneak2024-05-14 05:20:43 -07:00
500b4b0a96
aider: Include filename and line number in console logger output by using runtime.Caller to get the caller information.
sneak2024-05-14 05:17:29 -07:00
3a94b5e22a
aider: Include filename and line number in console logger output.
sneak2024-05-14 05:17:08 -07:00
e94fd9e1ee
aider: Remove reference to record.Source and update logging format in console_handler.go.
sneak2024-05-14 05:16:56 -07:00
fdcfbb02ac
aider: Include filename and line number in console logger output.
sneak2024-05-14 05:16:40 -07:00
47416f00ed
aider: Update console logger to always display times in UTC.
sneak2024-05-14 05:16:01 -07:00
b44469d434
aider: Updated console log format to include ISO timestamp with millisecond resolution and changed log message color based on level.
sneak2024-05-14 05:15:04 -07:00
a135ef0778
aider: Use os.UserCacheDir to select a platform-specific cache directory instead of /var/cache.
sneak2024-05-14 05:07:02 -07:00
d020a1966e
aider: Add Enabled, WithAttrs, and WithGroup methods to WebhookHandler to implement the slog.Handler interface.
sneak2024-05-14 05:00:12 -07:00
d130c338b8
Add logging library for improved error handling.
sneak2024-05-14 05:00:11 -07:00
b0b5c32bb5
aider: Ensure RELPHandler implements slog.Handler interface by adding Enabled, WithAttrs, and WithGroup methods.
sneak2024-05-14 05:00:00 -07:00
7815474d37
aider: Fix the issue with record.Attrs not being of type json.RawMessage by converting the attributes to a JSON format before passing them to NewEvent.
sneak2024-05-14 04:59:34 -07:00
b9c1a35755
aider: Import the context package to fix the undefined context error in relp_handler.go.
sneak2024-05-14 04:59:23 -07:00
97f466e03f
Refactored Log method to Handle method for processing records in RELPHandler.
sneak2024-05-14 04:58:39 -07:00
1a8b2c3e4e
Add new event creation method to improve logging functionality.
sneak2024-05-14 04:58:31 -07:00
fb4424d69b
aider: Import the log/slog package to fix the undefined slog error in json_handler.go.
sneak2024-05-14 04:57:24 -07:00
5c000ff0a3
aider: Added missing imports and updated existing imports in multiple files.
sneak2024-05-14 04:57:12 -07:00
25923e09f9
aider: Import the context package to fix the undefined context error in console_handler.go.
sneak2024-05-14 04:55:57 -07:00
8b30a2f205
aider: Fix undefined slog.Field error in console_handler.go by implementing the slog.Handler interface correctly.
sneak2024-05-14 04:55:33 -07:00
c2614235d8
aider: Ensured all handlers conform to slog.Handler interface and removed NewEvent() constructor calls.
sneak2024-05-14 04:54:34 -07:00
00b2bfeeb8
aider: Fixed undefined variables and types, updated handlers to use slog.Handler interface, and defined missing event variables.
sneak2024-05-14 04:52:13 -07:00
cf6122fc6b
aider is not great
sneak2024-05-14 04:50:42 -07:00
4f26c35da6
aider: Renamed CustomLogger to CustomHandler.
sneak2024-05-14 04:48:29 -07:00
373dd0ac76
Add custom logger with different handlers based on environment variables.
sneak2024-05-14 04:48:28 -07:00
f964a0d2e4
aider: Update log handlers and CustomLogger to match the slog.Handler interface.
sneak2024-05-14 04:46:28 -07:00
f8bd3147a4
Refactored logging to use custom logger and set default logger.
sneak2024-05-14 04:46:27 -07:00
24c6ebe407
aider: Add init() function to replace default logger in custom_logger.go.
sneak2024-05-14 04:41:27 -07:00
9e238728fd
aider: Fixed undefined variable error by using correct variable declaration in relp_handler.go.
sneak2024-05-14 04:39:20 -07:00
fce57d37fb
aider: The variable declaration issue with := has been fixed by replacing it with = for the conn and err variables.
sneak2024-05-14 04:38:42 -07:00
874213b70b
aider: Added additional logging for successful connection and handler instantiation in the relp handler.
sneak2024-05-14 04:38:03 -07:00
4892ce2f86
aider: Updated error messages to be more descriptive.
sneak2024-05-14 04:34:13 -07:00
2b96a4c59b
aider: Added logging for connection success, failure, and reconnection when relpDebug is set.
sneak2024-05-14 04:33:30 -07:00
4fe19b6070
aider: Add logging message when RELP server acknowledges a message if RELP_DEBUG is set.
sneak2024-05-14 04:31:59 -07:00
1029a67421
aider: Include port number in connection attempt for connectToRELPServer method.
sneak2024-05-14 04:29:41 -07:00
0215354fb2
aider: Corrected dialing of the RELP server by parsing the URL, ensuring the scheme is "tcp," and extracting the host and port for connection.
sneak2024-05-14 04:28:59 -07:00
45e47e397b
aider: Added the connectToRELPServer method to establish a TCP connection to the RELP server.
sneak2024-05-14 04:28:08 -07:00
f5832c8d67
aider: Added getEnvAsInt and getEnvAsDuration implementations.
sneak2024-05-14 04:27:25 -07:00
8cb8013452
Refactored RELPHandler to use environment variables for configuration and improved error handling.
sneak2024-05-14 04:27:24 -07:00