File tree Expand file tree Collapse file tree
Tests/CLITests/Subcommands/System Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -81,7 +81,8 @@ extension Application {
8181 env [ ApplicationRoot . environmentName] = appRoot. path ( percentEncoded: false )
8282 env [ InstallRoot . environmentName] = installRoot. path ( percentEncoded: false )
8383 if let logRoot {
84- env [ LogRoot . environmentName] = logRoot. isAbsolute
84+ env [ LogRoot . environmentName] =
85+ logRoot. isAbsolute
8586 ? logRoot. string
8687 : FilePath ( FileManager . default. currentDirectoryPath) . appending ( logRoot. components) . string
8788 }
Original file line number Diff line number Diff line change 11//===----------------------------------------------------------------------===//
2- // Copyright © 2025- 2026 Apple Inc. and the container project authors.
2+ // Copyright © 2026 Apple Inc. and the container project authors.
33//
44// Licensed under the Apache License, Version 2.0 (the "License");
55// you may not use this file except in compliance with the License.
@@ -75,4 +75,3 @@ public struct FileLogHandler: LogHandler {
7575 case openFailed
7676 }
7777}
78-
Original file line number Diff line number Diff line change 1+ //===----------------------------------------------------------------------===//
2+ // Copyright © 2026 Apple Inc. and the container project authors.
3+ //
4+ // Licensed under the Apache License, Version 2.0 (the "License");
5+ // you may not use this file except in compliance with the License.
6+ // You may obtain a copy of the License at
7+ //
8+ // https://www.apache.org/licenses/LICENSE-2.0
9+ //
10+ // Unless required by applicable law or agreed to in writing, software
11+ // distributed under the License is distributed on an "AS IS" BASIS,
12+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ // See the License for the specific language governing permissions and
14+ // limitations under the License.
15+ //===----------------------------------------------------------------------===//
16+
117import Logging
218import SystemPackage
319
420/// Common logging setup for application services.
521public struct ServiceLogger {
6- /// Create a logger
22+ /// Create a logger
723 public static func bootstrap(
824 category: String ,
925 label: String = " com.apple.container " ,
10- metadata: [ String : String ] = [ : ] ,
26+ metadata: [ String : String ] = [ : ] ,
1127 debug: Bool ,
1228 logPath: FilePath ?
1329 ) -> Logger {
@@ -29,4 +45,4 @@ public struct ServiceLogger {
2945 }
3046 return log
3147 }
32- }
48+ }
Original file line number Diff line number Diff line change 11//===----------------------------------------------------------------------===//
2- // Copyright © 2025- 2026 Apple Inc. and the container project authors.
2+ // Copyright © 2026 Apple Inc. and the container project authors.
33//
44// Licensed under the Apache License, Version 2.0 (the "License");
55// you may not use this file except in compliance with the License.
Original file line number Diff line number Diff line change @@ -228,7 +228,8 @@ extension PluginLoader {
228228 env [ ApplicationRoot . environmentName] = appRoot. path ( percentEncoded: false )
229229 env [ InstallRoot . environmentName] = installRoot. path ( percentEncoded: false )
230230 if let logRoot {
231- env [ LogRoot . environmentName] = logRoot. isAbsolute
231+ env [ LogRoot . environmentName] =
232+ logRoot. isAbsolute
232233 ? logRoot. string
233234 : FilePath ( FileManager . default. currentDirectoryPath) . appending ( logRoot. components) . string
234235 }
Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ import ArgumentParser
1818import ContainerLog
1919import ContainerNetworkService
2020import ContainerNetworkServiceClient
21- import ContainerResource
2221import ContainerPlugin
22+ import ContainerResource
2323import ContainerXPC
2424import ContainerizationError
2525import ContainerizationExtras
Original file line number Diff line number Diff line change 11//===----------------------------------------------------------------------===//
2- // Copyright © 2025- 2026 Apple Inc. and the container project authors.
2+ // Copyright © 2026 Apple Inc. and the container project authors.
33//
44// Licensed under the Apache License, Version 2.0 (the "License");
55// you may not use this file except in compliance with the License.
You can’t perform that action at this time.
0 commit comments