Skip to content

Commit b450a7d

Browse files
authored
Updated README.md to include logger configuration option (#63)
The README.md only listed 3 of the 4 Configuration options and did not mention the logging option. Added logging option to the configuration discussion. Placed it first, which is the same as the argument order for ServiceLifecycle.Configuration.
1 parent dda1fc5 commit b450a7d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ func register(_ tasks: LifecycleTask...)
152152

153153
`ServiceLifecycle` initializer takes optional `ServiceLifecycle.Configuration` to further refine the `ServiceLifecycle` behavior:
154154

155+
* `logger`: Defines the `Logger` to work with. By default, `Logger(label: "Lifecycle")` is used.
156+
155157
* `callbackQueue`: Defines the `DispatchQueue` on which startup and shutdown handlers are executed. By default, `DispatchQueue.global` is used.
156158

157159
* `shutdownSignal`: Defines what, if any, signals to trap for invoking shutdown. By default, `INT` and `TERM` are trapped.

0 commit comments

Comments
 (0)