├── Docs └── OSLogKit.doccarchive │ ├── favicon.ico │ ├── index │ ├── data.mdb │ ├── navigator.index │ └── availability.index │ ├── developer-og.jpg │ ├── metadata.json │ ├── developer-og-twitter.jpg │ ├── images │ └── LogKitBanner.png │ ├── img │ ├── no-image@2x.df2a0a50.png │ ├── deprecated-icon.015b4f17.svg │ ├── added-icon.d6f7e47d.svg │ └── modified-icon.f496e73d.svg │ ├── js │ ├── highlight-js-shell.dd7f411f.js │ ├── highlight-js-json.471128d2.js │ ├── highlight-js-diff.62d66733.js │ ├── highlight-js-http.163e45b6.js │ ├── highlight-js-xml.9c3688c7.js │ ├── highlight-js-markdown.90077643.js │ ├── highlight-js-java.8326d9d8.js │ ├── highlight-js-llvm.6100b125.js │ ├── highlight-js-objectivec.bcdf5156.js │ ├── highlight-js-bash.1b52852f.js │ ├── highlight-js-custom-markdown.7cffc4b3.js │ ├── highlight-js-python.c214ed92.js │ ├── highlight-js-ruby.f889d392.js │ ├── highlight-js-c.d1db3f17.js │ ├── highlight-js-php.cc8d6c27.js │ └── highlight-js-perl.757d7b6f.js │ ├── favicon.svg │ ├── data │ └── documentation │ │ ├── oslogkit │ │ ├── swiftui.json │ │ ├── oslogerror │ │ │ ├── error-implementations.json │ │ │ ├── invalidsubsystem.json │ │ │ ├── exportfailure(_:).json │ │ │ ├── errordescription.json │ │ │ └── localizeddescription.json │ │ ├── oslogspan │ │ │ ├── day(_:).json │ │ │ ├── hour(_:).json │ │ │ └── minute(_:).json │ │ └── oslogkit │ │ │ └── init().json │ │ └── oslogkit.json │ ├── css │ └── documentation-topic~topic.b6287bcf.css │ ├── index.html │ └── documentation │ └── oslogkit │ ├── index.html │ ├── oslogkit │ ├── index.html │ ├── init() │ │ └── index.html │ ├── capture(level:message:) │ │ └── index.html │ ├── init(subsystem:category:) │ │ └── index.html │ ├── captureinbulk(levels:messages:) │ │ └── index.html │ └── exportlogs(forsubsystem:timespan:completion:) │ │ └── index.html │ ├── swiftui │ ├── index.html │ └── view │ │ ├── index.html │ │ ├── capturelogontap(_:_:_:_:) │ │ └── index.html │ │ ├── capturebulklogontap(_:_:_:_:) │ │ └── index.html │ │ ├── capturelogonappear(_:_:_:_:) │ │ └── index.html │ │ ├── capturelogonsubmit(_:_:_:_:) │ │ └── index.html │ │ ├── capturebulklogonappear(_:_:_:_:) │ │ └── index.html │ │ ├── capturebulklogondisappear(_:_:_:_:) │ │ └── index.html │ │ ├── capturebulklogonlongpress(_:_:_:_:) │ │ └── index.html │ │ ├── capturebulklogonsubmit(_:_:_:_:) │ │ └── index.html │ │ ├── capturelogondisappear(_:_:_:_:) │ │ └── index.html │ │ └── capturelogonlongpress(_:_:_:_:) │ │ └── index.html │ ├── oslogerror │ ├── index.html │ ├── errordescription │ │ └── index.html │ ├── exportfailure(_:) │ │ └── index.html │ ├── invalidsubsystem │ │ └── index.html │ ├── error-implementations │ │ └── index.html │ └── localizeddescription │ │ └── index.html │ ├── oslogspan │ ├── index.html │ ├── day(_:) │ │ └── index.html │ ├── hour(_:) │ │ └── index.html │ └── minute(_:) │ │ └── index.html │ └── gettingstarted │ └── index.html ├── Sources └── OSLogKit │ ├── OSLogKit.docc │ ├── Resources │ │ └── LogKitBanner.png │ ├── GettingStarted.md │ └── OSLogKit.md │ ├── OSLogError.swift │ ├── OSLogSpan.swift │ └── OSLogKit.swift ├── .gitignore ├── .swiftpm └── xcode │ └── package.xcworkspace │ └── xcshareddata │ └── IDEWorkspaceChecks.plist ├── Package.resolved ├── Package.swift └── LICENSE /Docs/OSLogKit.doccarchive/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gokulnair2001/OSLogKit/HEAD/Docs/OSLogKit.doccarchive/favicon.ico -------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/index/data.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gokulnair2001/OSLogKit/HEAD/Docs/OSLogKit.doccarchive/index/data.mdb -------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/developer-og.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gokulnair2001/OSLogKit/HEAD/Docs/OSLogKit.doccarchive/developer-og.jpg -------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/index/navigator.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gokulnair2001/OSLogKit/HEAD/Docs/OSLogKit.doccarchive/index/navigator.index -------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/metadata.json: -------------------------------------------------------------------------------- 1 | {"bundleDisplayName":"OSLogKit","bundleIdentifier":"OSLogKit","schemaVersion":{"major":0,"minor":1,"patch":0}} -------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/developer-og-twitter.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gokulnair2001/OSLogKit/HEAD/Docs/OSLogKit.doccarchive/developer-og-twitter.jpg -------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/images/LogKitBanner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gokulnair2001/OSLogKit/HEAD/Docs/OSLogKit.doccarchive/images/LogKitBanner.png -------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/index/availability.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gokulnair2001/OSLogKit/HEAD/Docs/OSLogKit.doccarchive/index/availability.index -------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/img/no-image@2x.df2a0a50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gokulnair2001/OSLogKit/HEAD/Docs/OSLogKit.doccarchive/img/no-image@2x.df2a0a50.png -------------------------------------------------------------------------------- /Sources/OSLogKit/OSLogKit.docc/Resources/LogKitBanner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gokulnair2001/OSLogKit/HEAD/Sources/OSLogKit/OSLogKit.docc/Resources/LogKitBanner.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | /.build 3 | /Packages 4 | /*.xcodeproj 5 | xcuserdata/ 6 | DerivedData/ 7 | .swiftpm/config/registries.json 8 | .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata 9 | .netrc 10 | -------------------------------------------------------------------------------- /.swiftpm/xcode/package.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/img/deprecated-icon.015b4f17.svg: -------------------------------------------------------------------------------- 1 | 10 | 11 | -------------------------------------------------------------------------------- /Sources/OSLogKit/OSLogError.swift: -------------------------------------------------------------------------------- 1 | // 2 | // OSLogError.swift 3 | // 4 | // 5 | // Created by Gokul Nair on 19/06/23. 6 | // 7 | 8 | import Foundation 9 | 10 | /// OSLogKit uses OSLogError to throw correct error for various failures 11 | public enum OSLogError: Error { 12 | case invalidSubsystem 13 | case exportFailure(String) 14 | 15 | // Detailed description about the error 16 | public var errorDescription: String { 17 | switch self { 18 | case .exportFailure(let customString): 19 | return customString 20 | case .invalidSubsystem: 21 | return "OSLogKit: Invalid Subsystem" 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Package.resolved: -------------------------------------------------------------------------------- 1 | { 2 | "pins" : [ 3 | { 4 | "identity" : "swift-docc-plugin", 5 | "kind" : "remoteSourceControl", 6 | "location" : "https://github.com/apple/swift-docc-plugin.git", 7 | "state" : { 8 | "revision" : "9b1258905c21fc1b97bf03d1b4ca12c4ec4e5fda", 9 | "version" : "1.2.0" 10 | } 11 | }, 12 | { 13 | "identity" : "swift-docc-symbolkit", 14 | "kind" : "remoteSourceControl", 15 | "location" : "https://github.com/apple/swift-docc-symbolkit", 16 | "state" : { 17 | "revision" : "b45d1f2ed151d057b54504d653e0da5552844e34", 18 | "version" : "1.0.0" 19 | } 20 | } 21 | ], 22 | "version" : 2 23 | } 24 | -------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/img/added-icon.d6f7e47d.svg: -------------------------------------------------------------------------------- 1 | 10 | 11 | -------------------------------------------------------------------------------- /Sources/OSLogKit/OSLogSpan.swift: -------------------------------------------------------------------------------- 1 | // 2 | // OSLogSpan.swift 3 | // 4 | // 5 | // Created by Gokul Nair on 19/06/23. 6 | // 7 | 8 | import Foundation 9 | 10 | /// OSLogKit uses OSLogSpan to calculate the duration for which the log needs to be fetched 11 | public enum OSLogSpan { 12 | case minute(Int) 13 | case hour(Int) 14 | case day(Int) 15 | 16 | var getTimeInterval: TimeInterval { 17 | switch self { 18 | case .minute(let minutes): 19 | return TimeInterval(-60 * minutes) 20 | case .hour(let hours): 21 | return TimeInterval(-3600 * hours) 22 | case .day(let days): 23 | return TimeInterval(-24 * 3600 * days) 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/js/highlight-js-shell.dd7f411f.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * This source file is part of the Swift.org open source project 3 | * 4 | * Copyright (c) 2021 Apple Inc. and the Swift project authors 5 | * Licensed under Apache License v2.0 with Runtime Library Exception 6 | * 7 | * See https://swift.org/LICENSE.txt for license information 8 | * See https://swift.org/CONTRIBUTORS.txt for Swift project authors 9 | */ 10 | (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["highlight-js-shell"],{b65b:function(s,n){function e(s){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}s.exports=e}}]); -------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/js/highlight-js-json.471128d2.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * This source file is part of the Swift.org open source project 3 | * 4 | * Copyright (c) 2021 Apple Inc. and the Swift project authors 5 | * Licensed under Apache License v2.0 with Runtime Library Exception 6 | * 7 | * See https://swift.org/LICENSE.txt for license information 8 | * See https://swift.org/CONTRIBUTORS.txt for Swift project authors 9 | */ 10 | (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["highlight-js-json"],{"5ad2":function(n,e){function a(n){const e={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},a={match:/[{}[\],:]/,className:"punctuation",relevance:0},s={beginKeywords:["true","false","null"].join(" ")};return{name:"JSON",contains:[e,a,n.QUOTE_STRING_MODE,s,n.C_NUMBER_MODE,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}n.exports=a}}]); -------------------------------------------------------------------------------- /Sources/OSLogKit/OSLogKit.docc/GettingStarted.md: -------------------------------------------------------------------------------- 1 | # Getting Started 2 | 3 | OSLogKit helps you to adopt OSLog into your code base with ease. The powerful API's of OSLogKit make it easy to perform various logging operations. 4 | 5 | ## Usage 6 | 7 | Initially create the instance of ``OSLogKit`` with ``OSLogKit/OSLogKit/init()`` or ``OSLogKit/OSLogKit/init(subSystem:category:)`` initialiser 8 | 9 | ```swift 10 | let logger = Logger() 11 | ``` 12 | 13 | ### SwiftUI 14 | 15 | ```swift 16 | VStack { 17 | // Some view 18 | }.captureLogOnTap(logger, "OSLogKit test log") { 19 | // additional on tap action (Optional) 20 | } 21 | ``` 22 | 23 | ### UIKit 24 | ```swift 25 | logger.capture(message: "OSLogKit test log") 26 | ``` 27 | 28 | - Important: Use the classic logger instance from ``OSLogKit`` inorder to capture logs with more privacy 29 | 30 | ## Topics 31 | 32 | ### Classes 33 | 34 | - ``OSLogKit/OSLogKit`` 35 | 36 | ### Enumerations 37 | 38 | - ``OSLogError`` 39 | - ``OSLogSpan`` 40 | -------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/js/highlight-js-diff.62d66733.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * This source file is part of the Swift.org open source project 3 | * 4 | * Copyright (c) 2021 Apple Inc. and the Swift project authors 5 | * Licensed under Apache License v2.0 with Runtime Library Exception 6 | * 7 | * See https://swift.org/LICENSE.txt for license information 8 | * See https://swift.org/CONTRIBUTORS.txt for Swift project authors 9 | */ 10 | (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["highlight-js-diff"],{"48b8":function(e,n){function a(e){const n=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:n.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:n.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}e.exports=a}}]); -------------------------------------------------------------------------------- /Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version: 5.9 2 | // The swift-tools-version declares the minimum version of Swift required to build this package. 3 | 4 | import PackageDescription 5 | 6 | let package = Package( 7 | name: "OSLogKit", 8 | platforms: [.iOS(.v14), .macOS(.v11), .tvOS(.v14), .watchOS(.v7), .visionOS(.v1)], 9 | products: [ 10 | // Products define the executables and libraries a package produces, and make them visible to other packages. 11 | .library( 12 | name: "OSLogKit", 13 | targets: ["OSLogKit"]), 14 | ], 15 | dependencies: [ 16 | .package(url: "https://github.com/apple/swift-docc-plugin.git", from: "1.0.0"), 17 | ], 18 | targets: [ 19 | // Targets are the basic building blocks of a package. A target can define a module or a test suite. 20 | // Targets can depend on other targets in this package, and on products in packages this package depends on. 21 | .target( 22 | name: "OSLogKit", 23 | dependencies: []), 24 | ] 25 | ) 26 | -------------------------------------------------------------------------------- /Sources/OSLogKit/OSLogKit.docc/OSLogKit.md: -------------------------------------------------------------------------------- 1 | # ``OSLogKit`` 2 | 3 | A Layer 2 framework for OSLog which makes its adoption more easier⌨️ 4 | 5 | ## Overview 6 | 7 | OSLogKit is a layer 2 framework developed on top of the native OSLog system, aiming to simplify the integration of OSLog into your project. Apple has done an excellent job in ensuring that OSLogging is straightforward and easy to use. However, when it comes to implementing OSLog in your codebase, can be challenging. 8 | 9 | To address this, OSLogKit has been developed, further simplifying the process of adopting OSLog. One notable advantage of OSLogKit is that it offers additional functionalities not available in the native API. 10 | 11 | OSLogKit has a variety of Modifiers which makes OSLogKit adoption very easy. Don't worry if your code base is in UIKit, you can still adopt it quickly. 12 | 13 | ![OSLogKit](LogKitBanner.png) 14 | 15 | ## Topics 16 | 17 | ### Classes 18 | 19 | - ``OSLogKit/OSLogKit`` 20 | 21 | ### Usage 22 | - 23 | 24 | ### Enumerations 25 | 26 | - ``OSLogError`` 27 | - ``OSLogSpan`` 28 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 Gokul Nair 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/img/modified-icon.f496e73d.svg: -------------------------------------------------------------------------------- 1 | 10 | 11 | -------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/js/highlight-js-http.163e45b6.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * This source file is part of the Swift.org open source project 3 | * 4 | * Copyright (c) 2021 Apple Inc. and the Swift project authors 5 | * Licensed under Apache License v2.0 with Runtime Library Exception 6 | * 7 | * See https://swift.org/LICENSE.txt for license information 8 | * See https://swift.org/CONTRIBUTORS.txt for Swift project authors 9 | */ 10 | (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["highlight-js-http"],{c01d:function(e,n){function a(e){const n=e.regex,a="HTTP/(2|1\\.[01])",s=/[A-Za-z][A-Za-z0-9-]*/,t={className:"attribute",begin:n.concat("^",s,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},i=[t,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+a+" \\d{3})",end:/$/,contains:[{className:"meta",begin:a},{className:"number",begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:i}},{begin:"(?=^[A-Z]+ (.*?) "+a+"$)",end:/$/,contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:a},{className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:i}},e.inherit(t,{relevance:0})]}}e.exports=a}}]); -------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/favicon.svg: -------------------------------------------------------------------------------- 1 | 10 | 11 | -------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/data/documentation/oslogkit/swiftui.json: -------------------------------------------------------------------------------- 1 | {"variants":[{"paths":["\/documentation\/oslogkit\/swiftui"],"traits":[{"interfaceLanguage":"swift"}]}],"schemaVersion":{"major":0,"minor":3,"patch":0},"sections":[],"identifier":{"url":"doc:\/\/OSLogKit\/documentation\/OSLogKit\/SwiftUI","interfaceLanguage":"swift"},"topicSections":[{"title":"Extended Protocols","identifiers":["doc:\/\/OSLogKit\/documentation\/OSLogKit\/SwiftUI\/View"]}],"kind":"symbol","metadata":{"roleHeading":"Extended Module","externalID":"s:m:s:e:s:7SwiftUI4ViewP8OSLogKitE18captureLogOnAppearyQrA2DC_SSSo13os_log_type_tayycSgtF","title":"SwiftUI","symbolKind":"extension","role":"collection","modules":[{"name":"OSLogKit"}]},"hierarchy":{"paths":[["doc:\/\/OSLogKit\/documentation\/OSLogKit"]]},"references":{"doc://OSLogKit/documentation/OSLogKit/SwiftUI/View":{"role":"symbol","title":"View","fragments":[{"kind":"keyword","text":"extension"},{"kind":"text","text":" "},{"kind":"identifier","text":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}],"abstract":[],"identifier":"doc:\/\/OSLogKit\/documentation\/OSLogKit\/SwiftUI\/View","kind":"symbol","type":"topic","navigatorTitle":[{"kind":"identifier","text":"View"}],"url":"\/documentation\/oslogkit\/swiftui\/view"},"doc://OSLogKit/documentation/OSLogKit/SwiftUI":{"role":"collection","title":"SwiftUI","abstract":[],"identifier":"doc:\/\/OSLogKit\/documentation\/OSLogKit\/SwiftUI","kind":"symbol","type":"topic","url":"\/documentation\/oslogkit\/swiftui"},"doc://OSLogKit/documentation/OSLogKit":{"role":"collection","title":"OSLogKit","abstract":[{"type":"text","text":"A Layer 2 framework for OSLog which makes its adoption more easier⌨️"}],"identifier":"doc:\/\/OSLogKit\/documentation\/OSLogKit","kind":"symbol","type":"topic","url":"\/documentation\/oslogkit"}}} -------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/js/highlight-js-xml.9c3688c7.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * This source file is part of the Swift.org open source project 3 | * 4 | * Copyright (c) 2021 Apple Inc. and the Swift project authors 5 | * Licensed under Apache License v2.0 with Runtime Library Exception 6 | * 7 | * See https://swift.org/LICENSE.txt for license information 8 | * See https://swift.org/CONTRIBUTORS.txt for Swift project authors 9 | */ 10 | (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["highlight-js-xml"],{"8dcb":function(e,n){function a(e){const n=e.regex,a=n.concat(/[A-Z_]/,n.optional(/[A-Z0-9_.-]*:/),/[A-Z0-9_.-]*/),s=/[A-Za-z0-9._:-]+/,t={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},i={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},c=e.inherit(i,{begin:/\(/,end:/\)/}),l=e.inherit(e.APOS_STRING_MODE,{className:"string"}),r=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),g={endsWithParent:!0,illegal:/`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,contains:[{className:"meta",begin://,relevance:10,contains:[i,r,l,c,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin://,contains:[i,c,r,l]}]}]},e.COMMENT(//,{relevance:10}),{begin://,relevance:10},t,{className:"meta",begin:/<\?xml/,end:/\?>/,relevance:10},{className:"tag",begin:/)/,end:/>/,keywords:{name:"style"},contains:[g],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/)/,end:/>/,keywords:{name:"script"},contains:[g],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:n.concat(//,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:a,relevance:0,starts:g}]},{className:"tag",begin:n.concat(/<\//,n.lookahead(n.concat(a,/>/))),contains:[{className:"name",begin:a,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}e.exports=a}}]); -------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/js/highlight-js-markdown.90077643.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * This source file is part of the Swift.org open source project 3 | * 4 | * Copyright (c) 2021 Apple Inc. and the Swift project authors 5 | * Licensed under Apache License v2.0 with Runtime Library Exception 6 | * 7 | * See https://swift.org/LICENSE.txt for license information 8 | * See https://swift.org/CONTRIBUTORS.txt for Swift project authors 9 | */ 10 | (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["highlight-js-markdown"],{"04b0":function(n,e){function a(n){const e=n.regex,a={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},i={begin:"^[-\\*]{3,}",end:"$"},s={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},c={className:"bullet",begin:"^[ \t]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},t={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},g=/[A-Za-z][A-Za-z0-9+.-]*/,d={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:e.concat(/\[.+?\]\(/,g,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},l={className:"strong",contains:[],variants:[{begin:/_{2}/,end:/_{2}/},{begin:/\*{2}/,end:/\*{2}/}]},o={className:"emphasis",contains:[],variants:[{begin:/\*(?!\*)/,end:/\*/},{begin:/_(?!_)/,end:/_/,relevance:0}]};l.contains.push(o),o.contains.push(l);let b=[a,d];l.contains=l.contains.concat(b),o.contains=o.contains.concat(b),b=b.concat(l,o);const r={className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:b},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:b}]}]},m={className:"quote",begin:"^>\\s+",contains:b,end:"$"};return{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[r,a,c,l,o,m,s,i,d,t]}}n.exports=a}}]); -------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/css/documentation-topic~topic.b6287bcf.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * This source file is part of the Swift.org open source project 3 | * 4 | * Copyright (c) 2021 Apple Inc. and the Swift project authors 5 | * Licensed under Apache License v2.0 with Runtime Library Exception 6 | * 7 | * See https://swift.org/LICENSE.txt for license information 8 | * See https://swift.org/CONTRIBUTORS.txt for Swift project authors 9 | */.generic-modal[data-v-795f7b59]{position:fixed;top:0;left:0;right:0;bottom:0;margin:0;z-index:11000;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;background:none;overflow:auto}.modal-fullscreen[data-v-795f7b59]{align-items:stretch}.modal-fullscreen .container[data-v-795f7b59]{margin:0;flex:1;width:100%;height:100%;padding-top:env(safe-area-inset-top);padding-right:env(safe-area-inset-right);padding-bottom:env(safe-area-inset-bottom);padding-left:env(safe-area-inset-left)}.modal-standard[data-v-795f7b59]{padding:20px}.modal-standard .container[data-v-795f7b59]{padding:60px;border-radius:var(--border-radius,4px)}@media screen{[data-color-scheme=dark] .modal-standard .container[data-v-795f7b59]{background:#1d1d1f}}@media screen and (prefers-color-scheme:dark){[data-color-scheme=auto] .modal-standard .container[data-v-795f7b59]{background:#1d1d1f}}@media only screen and (max-width:735px){.modal-standard[data-v-795f7b59]{padding:0;align-items:stretch}.modal-standard .container[data-v-795f7b59]{margin:20px 0 0;padding:50px 30px;flex:1;width:100%;border-bottom-left-radius:0;border-bottom-right-radius:0}}.backdrop[data-v-795f7b59]{overflow:auto;background:var(--backdrop-background,rgba(0,0,0,.4));-webkit-overflow-scrolling:touch;width:100%;height:100%;position:fixed}.container[data-v-795f7b59]{margin-left:auto;margin-right:auto;width:980px;background:var(--colors-generic-modal-background,var(--color-generic-modal-background));z-index:1;position:relative;overflow:auto;max-width:100%}@media only screen and (max-width:1250px){.container[data-v-795f7b59]{width:692px}}@media only screen and (max-width:735px){.container[data-v-795f7b59]{width:87.5%}}@media only screen and (max-width:320px){.container[data-v-795f7b59]{width:215px}}.close[data-v-795f7b59]{position:absolute;z-index:9999;top:22px;left:22px;width:17px;height:17px;color:#666;cursor:pointer;background:none;border:0;display:flex;align-items:center}.close .close-icon[data-v-795f7b59]{fill:currentColor;width:100%;height:100%}.theme-dark .container[data-v-795f7b59]{background:#000}.theme-dark .container .close[data-v-795f7b59]{color:#b0b0b0}.theme-code .container[data-v-795f7b59]{background-color:var(--code-background,var(--color-code-background))} -------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/data/documentation/oslogkit/oslogerror/error-implementations.json: -------------------------------------------------------------------------------- 1 | {"variants":[{"paths":["\/documentation\/oslogkit\/oslogerror\/error-implementations"],"traits":[{"interfaceLanguage":"swift"}]}],"schemaVersion":{"major":0,"minor":3,"patch":0},"sections":[],"identifier":{"url":"doc:\/\/OSLogKit\/documentation\/OSLogKit\/OSLogError\/Error-Implementations","interfaceLanguage":"swift"},"topicSections":[{"title":"Instance Properties","identifiers":["doc:\/\/OSLogKit\/documentation\/OSLogKit\/OSLogError\/localizedDescription"],"generated":true}],"kind":"article","metadata":{"modules":[{"name":"OSLogKit"}],"role":"collectionGroup","title":"Error Implementations"},"hierarchy":{"paths":[["doc:\/\/OSLogKit\/documentation\/OSLogKit","doc:\/\/OSLogKit\/documentation\/OSLogKit\/OSLogError"],["doc:\/\/OSLogKit\/documentation\/OSLogKit","doc:\/\/OSLogKit\/documentation\/OSLogKit\/GettingStarted","doc:\/\/OSLogKit\/documentation\/OSLogKit\/OSLogError"]]},"references":{"doc://OSLogKit/documentation/OSLogKit/OSLogError":{"role":"symbol","title":"OSLogError","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"kind":"identifier","text":"OSLogError"}],"abstract":[{"type":"text","text":"OSLogKit uses OSLogError to throw correct error for various failures"}],"identifier":"doc:\/\/OSLogKit\/documentation\/OSLogKit\/OSLogError","kind":"symbol","type":"topic","navigatorTitle":[{"kind":"identifier","text":"OSLogError"}],"url":"\/documentation\/oslogkit\/oslogerror"},"doc://OSLogKit/documentation/OSLogKit/OSLogError/localizedDescription":{"role":"symbol","title":"localizedDescription","fragments":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"kind":"identifier","text":"localizedDescription"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"}],"abstract":[],"identifier":"doc:\/\/OSLogKit\/documentation\/OSLogKit\/OSLogError\/localizedDescription","kind":"symbol","type":"topic","url":"\/documentation\/oslogkit\/oslogerror\/localizeddescription"},"doc://OSLogKit/documentation/OSLogKit/GettingStarted":{"role":"collectionGroup","title":"Getting Started","abstract":[{"type":"text","text":"OSLogKit helps you to adopt OSLog into your code base with ease. The powerful API’s of OSLogKit make it easy to perform various logging operations."}],"identifier":"doc:\/\/OSLogKit\/documentation\/OSLogKit\/GettingStarted","kind":"article","type":"topic","url":"\/documentation\/oslogkit\/gettingstarted"},"doc://OSLogKit/documentation/OSLogKit":{"role":"collection","title":"OSLogKit","abstract":[{"type":"text","text":"A Layer 2 framework for OSLog which makes its adoption more easier⌨️"}],"identifier":"doc:\/\/OSLogKit\/documentation\/OSLogKit","kind":"symbol","type":"topic","url":"\/documentation\/oslogkit"}}} -------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/data/documentation/oslogkit/oslogerror/invalidsubsystem.json: -------------------------------------------------------------------------------- 1 | {"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"kind":"identifier","text":"invalidSubsystem"}],"languages":["swift"],"platforms":["iOS"]}]}],"schemaVersion":{"major":0,"minor":3,"patch":0},"sections":[],"variants":[{"paths":["\/documentation\/oslogkit\/oslogerror\/invalidsubsystem"],"traits":[{"interfaceLanguage":"swift"}]}],"identifier":{"url":"doc:\/\/OSLogKit\/documentation\/OSLogKit\/OSLogError\/invalidSubsystem","interfaceLanguage":"swift"},"kind":"symbol","metadata":{"fragments":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"kind":"identifier","text":"invalidSubsystem"}],"title":"OSLogError.invalidSubsystem","roleHeading":"Case","role":"symbol","symbolKind":"case","externalID":"s:8OSLogKit0A5ErrorO16invalidSubsystemyA2CmF","modules":[{"name":"OSLogKit"}]},"hierarchy":{"paths":[["doc:\/\/OSLogKit\/documentation\/OSLogKit","doc:\/\/OSLogKit\/documentation\/OSLogKit\/OSLogError"],["doc:\/\/OSLogKit\/documentation\/OSLogKit","doc:\/\/OSLogKit\/documentation\/OSLogKit\/GettingStarted","doc:\/\/OSLogKit\/documentation\/OSLogKit\/OSLogError"]]},"references":{"doc://OSLogKit/documentation/OSLogKit":{"role":"collection","title":"OSLogKit","abstract":[{"type":"text","text":"A Layer 2 framework for OSLog which makes its adoption more easier⌨️"}],"identifier":"doc:\/\/OSLogKit\/documentation\/OSLogKit","kind":"symbol","type":"topic","url":"\/documentation\/oslogkit"},"doc://OSLogKit/documentation/OSLogKit/GettingStarted":{"role":"collectionGroup","title":"Getting Started","abstract":[{"type":"text","text":"OSLogKit helps you to adopt OSLog into your code base with ease. The powerful API’s of OSLogKit make it easy to perform various logging operations."}],"identifier":"doc:\/\/OSLogKit\/documentation\/OSLogKit\/GettingStarted","kind":"article","type":"topic","url":"\/documentation\/oslogkit\/gettingstarted"},"doc://OSLogKit/documentation/OSLogKit/OSLogError":{"role":"symbol","title":"OSLogError","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"kind":"identifier","text":"OSLogError"}],"abstract":[{"type":"text","text":"OSLogKit uses OSLogError to throw correct error for various failures"}],"identifier":"doc:\/\/OSLogKit\/documentation\/OSLogKit\/OSLogError","kind":"symbol","type":"topic","navigatorTitle":[{"kind":"identifier","text":"OSLogError"}],"url":"\/documentation\/oslogkit\/oslogerror"},"doc://OSLogKit/documentation/OSLogKit/OSLogError/invalidSubsystem":{"role":"symbol","title":"OSLogError.invalidSubsystem","fragments":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"kind":"identifier","text":"invalidSubsystem"}],"abstract":[],"identifier":"doc:\/\/OSLogKit\/documentation\/OSLogKit\/OSLogError\/invalidSubsystem","kind":"symbol","type":"topic","url":"\/documentation\/oslogkit\/oslogerror\/invalidsubsystem"}}} -------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/js/highlight-js-java.8326d9d8.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * This source file is part of the Swift.org open source project 3 | * 4 | * Copyright (c) 2021 Apple Inc. and the Swift project authors 5 | * Licensed under Apache License v2.0 with Runtime Library Exception 6 | * 7 | * See https://swift.org/LICENSE.txt for license information 8 | * See https://swift.org/CONTRIBUTORS.txt for Swift project authors 9 | */ 10 | (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["highlight-js-java"],{"332f":function(e,a){var n="[0-9](_*[0-9])*",s=`\\.(${n})`,i="[0-9a-fA-F](_*[0-9a-fA-F])*",t={className:"number",variants:[{begin:`(\\b(${n})((${s})|\\.)?|(${s}))[eE][+-]?(${n})[fFdD]?\\b`},{begin:`\\b(${n})((${s})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${s})[fFdD]?\\b`},{begin:`\\b(${n})[fFdD]\\b`},{begin:`\\b0[xX]((${i})\\.?|(${i})?\\.(${i}))[pP][+-]?(${n})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${i})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function r(e,a,n){return-1===n?"":e.replace(a,s=>r(e,a,n-1))}function c(e){e.regex;const a="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",n=a+r("(?:<"+a+"~~~(?:\\s*,\\s*"+a+"~~~)*>)?",/~~~/g,2),s=["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do"],i=["super","this"],c=["false","true","null"],l=["char","boolean","long","float","int","byte","short","double"],o={keyword:s,literal:c,type:l,built_in:i},b={className:"meta",begin:"@"+a,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},_={className:"params",begin:/\(/,end:/\)/,keywords:o,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:o,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,a],className:{1:"keyword",3:"title.class"}},{begin:[a,/\s+/,a,/\s+/,/=/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,a],className:{1:"keyword",3:"title.class"},contains:[_,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+n+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:o,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:o,relevance:0,contains:[b,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,t,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},t,b]}}e.exports=c}}]); -------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/js/highlight-js-llvm.6100b125.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * This source file is part of the Swift.org open source project 3 | * 4 | * Copyright (c) 2021 Apple Inc. and the Swift project authors 5 | * Licensed under Apache License v2.0 with Runtime Library Exception 6 | * 7 | * See https://swift.org/LICENSE.txt for license information 8 | * See https://swift.org/CONTRIBUTORS.txt for Swift project authors 9 | */ 10 | (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["highlight-js-llvm"],{"7c30":function(e,n){function a(e){const n=e.regex,a=/([-a-zA-Z$._][\w$.-]*)/,t={className:"type",begin:/\bi\d+(?=\s|\b)/},i={className:"operator",relevance:0,begin:/=/},c={className:"punctuation",relevance:0,begin:/,/},l={className:"number",variants:[{begin:/0[xX][a-fA-F0-9]+/},{begin:/-?\d+(?:[.]\d+)?(?:[eE][-+]?\d+(?:[.]\d+)?)?/}],relevance:0},r={className:"symbol",variants:[{begin:/^\s*[a-z]+:/}],relevance:0},s={className:"variable",variants:[{begin:n.concat(/%/,a)},{begin:/%\d+/},{begin:/#\d+/}]},o={className:"title",variants:[{begin:n.concat(/@/,a)},{begin:/@\d+/},{begin:n.concat(/!/,a)},{begin:n.concat(/!\d+/,a)},{begin:/!\d+/}]};return{name:"LLVM IR",keywords:"begin end true false declare define global constant private linker_private internal available_externally linkonce linkonce_odr weak weak_odr appending dllimport dllexport common default hidden protected extern_weak external thread_local zeroinitializer undef null to tail target triple datalayout volatile nuw nsw nnan ninf nsz arcp fast exact inbounds align addrspace section alias module asm sideeffect gc dbg linker_private_weak attributes blockaddress initialexec localdynamic localexec prefix unnamed_addr ccc fastcc coldcc x86_stdcallcc x86_fastcallcc arm_apcscc arm_aapcscc arm_aapcs_vfpcc ptx_device ptx_kernel intel_ocl_bicc msp430_intrcc spir_func spir_kernel x86_64_sysvcc x86_64_win64cc x86_thiscallcc cc c signext zeroext inreg sret nounwind noreturn noalias nocapture byval nest readnone readonly inlinehint noinline alwaysinline optsize ssp sspreq noredzone noimplicitfloat naked builtin cold nobuiltin noduplicate nonlazybind optnone returns_twice sanitize_address sanitize_memory sanitize_thread sspstrong uwtable returned type opaque eq ne slt sgt sle sge ult ugt ule uge oeq one olt ogt ole oge ord uno ueq une x acq_rel acquire alignstack atomic catch cleanup filter inteldialect max min monotonic nand personality release seq_cst singlethread umax umin unordered xchg add fadd sub fsub mul fmul udiv sdiv fdiv urem srem frem shl lshr ashr and or xor icmp fcmp phi call trunc zext sext fptrunc fpext uitofp sitofp fptoui fptosi inttoptr ptrtoint bitcast addrspacecast select va_arg ret br switch invoke unwind unreachable indirectbr landingpad resume malloc alloca free load store getelementptr extractelement insertelement shufflevector getresult extractvalue insertvalue atomicrmw cmpxchg fence argmemonly double",contains:[t,e.COMMENT(/;\s*$/,null,{relevance:0}),e.COMMENT(/;/,/$/),e.QUOTE_STRING_MODE,{className:"string",variants:[{begin:/"/,end:/[^\\]"/}]},o,c,i,s,r,l]}}e.exports=a}}]); -------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/data/documentation/oslogkit/oslogspan/day(_:).json: -------------------------------------------------------------------------------- 1 | {"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"kind":"identifier","text":"day"},{"kind":"text","text":"("},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"kind":"text","text":")"}],"languages":["swift"],"platforms":["iOS"]}]}],"schemaVersion":{"major":0,"minor":3,"patch":0},"sections":[],"variants":[{"paths":["\/documentation\/oslogkit\/oslogspan\/day(_:)"],"traits":[{"interfaceLanguage":"swift"}]}],"identifier":{"url":"doc:\/\/OSLogKit\/documentation\/OSLogKit\/OSLogSpan\/day(_:)","interfaceLanguage":"swift"},"kind":"symbol","metadata":{"fragments":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"kind":"identifier","text":"day"},{"kind":"text","text":"("},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"kind":"text","text":")"}],"title":"OSLogSpan.day(_:)","roleHeading":"Case","role":"symbol","symbolKind":"case","externalID":"s:8OSLogKit0A4SpanO3dayyACSicACmF","modules":[{"name":"OSLogKit"}]},"hierarchy":{"paths":[["doc:\/\/OSLogKit\/documentation\/OSLogKit","doc:\/\/OSLogKit\/documentation\/OSLogKit\/OSLogSpan"],["doc:\/\/OSLogKit\/documentation\/OSLogKit","doc:\/\/OSLogKit\/documentation\/OSLogKit\/GettingStarted","doc:\/\/OSLogKit\/documentation\/OSLogKit\/OSLogSpan"]]},"references":{"doc://OSLogKit/documentation/OSLogKit/OSLogSpan/day(_:)":{"role":"symbol","title":"OSLogSpan.day(_:)","fragments":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"kind":"identifier","text":"day"},{"kind":"text","text":"("},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"kind":"text","text":")"}],"abstract":[],"identifier":"doc:\/\/OSLogKit\/documentation\/OSLogKit\/OSLogSpan\/day(_:)","kind":"symbol","type":"topic","url":"\/documentation\/oslogkit\/oslogspan\/day(_:)"},"doc://OSLogKit/documentation/OSLogKit/GettingStarted":{"role":"collectionGroup","title":"Getting Started","abstract":[{"type":"text","text":"OSLogKit helps you to adopt OSLog into your code base with ease. The powerful API’s of OSLogKit make it easy to perform various logging operations."}],"identifier":"doc:\/\/OSLogKit\/documentation\/OSLogKit\/GettingStarted","kind":"article","type":"topic","url":"\/documentation\/oslogkit\/gettingstarted"},"doc://OSLogKit/documentation/OSLogKit/OSLogSpan":{"role":"symbol","title":"OSLogSpan","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"kind":"identifier","text":"OSLogSpan"}],"abstract":[{"type":"text","text":"OSLogKit uses OSLogSpan to calculate the duration for which the log needs to be fetched"}],"identifier":"doc:\/\/OSLogKit\/documentation\/OSLogKit\/OSLogSpan","kind":"symbol","type":"topic","navigatorTitle":[{"kind":"identifier","text":"OSLogSpan"}],"url":"\/documentation\/oslogkit\/oslogspan"},"doc://OSLogKit/documentation/OSLogKit":{"role":"collection","title":"OSLogKit","abstract":[{"type":"text","text":"A Layer 2 framework for OSLog which makes its adoption more easier⌨️"}],"identifier":"doc:\/\/OSLogKit\/documentation\/OSLogKit","kind":"symbol","type":"topic","url":"\/documentation\/oslogkit"}}} -------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/data/documentation/oslogkit/oslogspan/hour(_:).json: -------------------------------------------------------------------------------- 1 | {"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"kind":"identifier","text":"hour"},{"kind":"text","text":"("},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"kind":"text","text":")"}],"languages":["swift"],"platforms":["iOS"]}]}],"schemaVersion":{"major":0,"minor":3,"patch":0},"sections":[],"variants":[{"paths":["\/documentation\/oslogkit\/oslogspan\/hour(_:)"],"traits":[{"interfaceLanguage":"swift"}]}],"identifier":{"url":"doc:\/\/OSLogKit\/documentation\/OSLogKit\/OSLogSpan\/hour(_:)","interfaceLanguage":"swift"},"kind":"symbol","metadata":{"fragments":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"kind":"identifier","text":"hour"},{"kind":"text","text":"("},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"kind":"text","text":")"}],"title":"OSLogSpan.hour(_:)","roleHeading":"Case","role":"symbol","symbolKind":"case","externalID":"s:8OSLogKit0A4SpanO4houryACSicACmF","modules":[{"name":"OSLogKit"}]},"hierarchy":{"paths":[["doc:\/\/OSLogKit\/documentation\/OSLogKit","doc:\/\/OSLogKit\/documentation\/OSLogKit\/OSLogSpan"],["doc:\/\/OSLogKit\/documentation\/OSLogKit","doc:\/\/OSLogKit\/documentation\/OSLogKit\/GettingStarted","doc:\/\/OSLogKit\/documentation\/OSLogKit\/OSLogSpan"]]},"references":{"doc://OSLogKit/documentation/OSLogKit/OSLogSpan":{"role":"symbol","title":"OSLogSpan","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"kind":"identifier","text":"OSLogSpan"}],"abstract":[{"type":"text","text":"OSLogKit uses OSLogSpan to calculate the duration for which the log needs to be fetched"}],"identifier":"doc:\/\/OSLogKit\/documentation\/OSLogKit\/OSLogSpan","kind":"symbol","type":"topic","navigatorTitle":[{"kind":"identifier","text":"OSLogSpan"}],"url":"\/documentation\/oslogkit\/oslogspan"},"doc://OSLogKit/documentation/OSLogKit/OSLogSpan/hour(_:)":{"role":"symbol","title":"OSLogSpan.hour(_:)","fragments":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"kind":"identifier","text":"hour"},{"kind":"text","text":"("},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"kind":"text","text":")"}],"abstract":[],"identifier":"doc:\/\/OSLogKit\/documentation\/OSLogKit\/OSLogSpan\/hour(_:)","kind":"symbol","type":"topic","url":"\/documentation\/oslogkit\/oslogspan\/hour(_:)"},"doc://OSLogKit/documentation/OSLogKit":{"role":"collection","title":"OSLogKit","abstract":[{"type":"text","text":"A Layer 2 framework for OSLog which makes its adoption more easier⌨️"}],"identifier":"doc:\/\/OSLogKit\/documentation\/OSLogKit","kind":"symbol","type":"topic","url":"\/documentation\/oslogkit"},"doc://OSLogKit/documentation/OSLogKit/GettingStarted":{"role":"collectionGroup","title":"Getting Started","abstract":[{"type":"text","text":"OSLogKit helps you to adopt OSLog into your code base with ease. The powerful API’s of OSLogKit make it easy to perform various logging operations."}],"identifier":"doc:\/\/OSLogKit\/documentation\/OSLogKit\/GettingStarted","kind":"article","type":"topic","url":"\/documentation\/oslogkit\/gettingstarted"}}} -------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/data/documentation/oslogkit/oslogkit/init().json: -------------------------------------------------------------------------------- 1 | {"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"init"},{"kind":"text","text":"()"}],"languages":["swift"],"platforms":["iOS"]}]}],"schemaVersion":{"major":0,"minor":3,"patch":0},"sections":[],"variants":[{"paths":["\/documentation\/oslogkit\/oslogkit\/init()"],"traits":[{"interfaceLanguage":"swift"}]}],"identifier":{"url":"doc:\/\/OSLogKit\/documentation\/OSLogKit\/OSLogKit\/init()","interfaceLanguage":"swift"},"abstract":[{"type":"text","text":"Creates a logger for logging to the default subsystem."}],"kind":"symbol","metadata":{"role":"symbol","title":"init()","roleHeading":"Initializer","fragments":[{"kind":"identifier","text":"init"},{"kind":"text","text":"()"}],"symbolKind":"init","externalID":"s:8OSLogKitAACABycfc","modules":[{"name":"OSLogKit"}],"platforms":[{"beta":false,"unavailable":false,"name":"iOS","introducedAt":"14.0","deprecated":false},{"beta":false,"unavailable":false,"name":"macOS","introducedAt":"11.0","deprecated":false},{"beta":false,"unavailable":false,"name":"tvOS","introducedAt":"14.0","deprecated":false},{"beta":false,"unavailable":false,"name":"watchOS","introducedAt":"7.0","deprecated":false},{"beta":false,"unavailable":false,"name":"xrOS","introducedAt":"1.0","deprecated":false}]},"hierarchy":{"paths":[["doc:\/\/OSLogKit\/documentation\/OSLogKit","doc:\/\/OSLogKit\/documentation\/OSLogKit\/OSLogKit"],["doc:\/\/OSLogKit\/documentation\/OSLogKit","doc:\/\/OSLogKit\/documentation\/OSLogKit\/GettingStarted","doc:\/\/OSLogKit\/documentation\/OSLogKit\/OSLogKit"]]},"references":{"doc://OSLogKit/documentation/OSLogKit":{"role":"collection","title":"OSLogKit","abstract":[{"type":"text","text":"A Layer 2 framework for OSLog which makes its adoption more easier⌨️"}],"identifier":"doc:\/\/OSLogKit\/documentation\/OSLogKit","kind":"symbol","type":"topic","url":"\/documentation\/oslogkit"},"doc://OSLogKit/documentation/OSLogKit/OSLogKit/init()":{"role":"symbol","title":"init()","fragments":[{"kind":"identifier","text":"init"},{"kind":"text","text":"()"}],"abstract":[{"type":"text","text":"Creates a logger for logging to the default subsystem."}],"identifier":"doc:\/\/OSLogKit\/documentation\/OSLogKit\/OSLogKit\/init()","kind":"symbol","type":"topic","url":"\/documentation\/oslogkit\/oslogkit\/init()"},"doc://OSLogKit/documentation/OSLogKit/OSLogKit":{"role":"symbol","title":"OSLogKit","fragments":[{"kind":"keyword","text":"class"},{"kind":"text","text":" "},{"kind":"identifier","text":"OSLogKit"}],"abstract":[],"identifier":"doc:\/\/OSLogKit\/documentation\/OSLogKit\/OSLogKit","kind":"symbol","type":"topic","navigatorTitle":[{"kind":"identifier","text":"OSLogKit"}],"url":"\/documentation\/oslogkit\/oslogkit"},"doc://OSLogKit/documentation/OSLogKit/GettingStarted":{"role":"collectionGroup","title":"Getting Started","abstract":[{"type":"text","text":"OSLogKit helps you to adopt OSLog into your code base with ease. The powerful API’s of OSLogKit make it easy to perform various logging operations."}],"identifier":"doc:\/\/OSLogKit\/documentation\/OSLogKit\/GettingStarted","kind":"article","type":"topic","url":"\/documentation\/oslogkit\/gettingstarted"}}} -------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/data/documentation/oslogkit/oslogspan/minute(_:).json: -------------------------------------------------------------------------------- 1 | {"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"kind":"identifier","text":"minute"},{"kind":"text","text":"("},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"kind":"text","text":")"}],"languages":["swift"],"platforms":["iOS"]}]}],"schemaVersion":{"major":0,"minor":3,"patch":0},"sections":[],"variants":[{"paths":["\/documentation\/oslogkit\/oslogspan\/minute(_:)"],"traits":[{"interfaceLanguage":"swift"}]}],"identifier":{"url":"doc:\/\/OSLogKit\/documentation\/OSLogKit\/OSLogSpan\/minute(_:)","interfaceLanguage":"swift"},"kind":"symbol","metadata":{"fragments":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"kind":"identifier","text":"minute"},{"kind":"text","text":"("},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"kind":"text","text":")"}],"title":"OSLogSpan.minute(_:)","roleHeading":"Case","role":"symbol","symbolKind":"case","externalID":"s:8OSLogKit0A4SpanO6minuteyACSicACmF","modules":[{"name":"OSLogKit"}]},"hierarchy":{"paths":[["doc:\/\/OSLogKit\/documentation\/OSLogKit","doc:\/\/OSLogKit\/documentation\/OSLogKit\/OSLogSpan"],["doc:\/\/OSLogKit\/documentation\/OSLogKit","doc:\/\/OSLogKit\/documentation\/OSLogKit\/GettingStarted","doc:\/\/OSLogKit\/documentation\/OSLogKit\/OSLogSpan"]]},"references":{"doc://OSLogKit/documentation/OSLogKit":{"role":"collection","title":"OSLogKit","abstract":[{"type":"text","text":"A Layer 2 framework for OSLog which makes its adoption more easier⌨️"}],"identifier":"doc:\/\/OSLogKit\/documentation\/OSLogKit","kind":"symbol","type":"topic","url":"\/documentation\/oslogkit"},"doc://OSLogKit/documentation/OSLogKit/OSLogSpan":{"role":"symbol","title":"OSLogSpan","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"kind":"identifier","text":"OSLogSpan"}],"abstract":[{"type":"text","text":"OSLogKit uses OSLogSpan to calculate the duration for which the log needs to be fetched"}],"identifier":"doc:\/\/OSLogKit\/documentation\/OSLogKit\/OSLogSpan","kind":"symbol","type":"topic","navigatorTitle":[{"kind":"identifier","text":"OSLogSpan"}],"url":"\/documentation\/oslogkit\/oslogspan"},"doc://OSLogKit/documentation/OSLogKit/GettingStarted":{"role":"collectionGroup","title":"Getting Started","abstract":[{"type":"text","text":"OSLogKit helps you to adopt OSLog into your code base with ease. The powerful API’s of OSLogKit make it easy to perform various logging operations."}],"identifier":"doc:\/\/OSLogKit\/documentation\/OSLogKit\/GettingStarted","kind":"article","type":"topic","url":"\/documentation\/oslogkit\/gettingstarted"},"doc://OSLogKit/documentation/OSLogKit/OSLogSpan/minute(_:)":{"role":"symbol","title":"OSLogSpan.minute(_:)","fragments":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"kind":"identifier","text":"minute"},{"kind":"text","text":"("},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"kind":"text","text":")"}],"abstract":[],"identifier":"doc:\/\/OSLogKit\/documentation\/OSLogKit\/OSLogSpan\/minute(_:)","kind":"symbol","type":"topic","url":"\/documentation\/oslogkit\/oslogspan\/minute(_:)"}}} -------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/js/highlight-js-objectivec.bcdf5156.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * This source file is part of the Swift.org open source project 3 | * 4 | * Copyright (c) 2021 Apple Inc. and the Swift project authors 5 | * Licensed under Apache License v2.0 with Runtime Library Exception 6 | * 7 | * See https://swift.org/LICENSE.txt for license information 8 | * See https://swift.org/CONTRIBUTORS.txt for Swift project authors 9 | */ 10 | (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["highlight-js-objectivec"],{"9bf2":function(e,n){function _(e){const n={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},_=/[a-zA-Z@][a-zA-Z0-9_]*/,i=["int","float","while","char","export","sizeof","typedef","const","struct","for","union","unsigned","long","volatile","static","bool","mutable","if","do","return","goto","void","enum","else","break","extern","asm","case","short","default","double","register","explicit","signed","typename","this","switch","continue","wchar_t","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","super","unichar","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],t=["false","true","FALSE","TRUE","nil","YES","NO","NULL"],a=["BOOL","dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],o={$pattern:_,keyword:i,literal:t,built_in:a},s={$pattern:_,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:o,illegal:"/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+s.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:s,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}e.exports=_}}]); -------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/data/documentation/oslogkit/oslogerror/exportfailure(_:).json: -------------------------------------------------------------------------------- 1 | {"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"kind":"identifier","text":"exportFailure"},{"kind":"text","text":"("},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"kind":"text","text":")"}],"languages":["swift"],"platforms":["iOS"]}]}],"schemaVersion":{"major":0,"minor":3,"patch":0},"sections":[],"variants":[{"paths":["\/documentation\/oslogkit\/oslogerror\/exportfailure(_:)"],"traits":[{"interfaceLanguage":"swift"}]}],"identifier":{"url":"doc:\/\/OSLogKit\/documentation\/OSLogKit\/OSLogError\/exportFailure(_:)","interfaceLanguage":"swift"},"kind":"symbol","metadata":{"fragments":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"kind":"identifier","text":"exportFailure"},{"kind":"text","text":"("},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"kind":"text","text":")"}],"title":"OSLogError.exportFailure(_:)","roleHeading":"Case","role":"symbol","symbolKind":"case","externalID":"s:8OSLogKit0A5ErrorO13exportFailureyACSScACmF","modules":[{"name":"OSLogKit"}]},"hierarchy":{"paths":[["doc:\/\/OSLogKit\/documentation\/OSLogKit","doc:\/\/OSLogKit\/documentation\/OSLogKit\/OSLogError"],["doc:\/\/OSLogKit\/documentation\/OSLogKit","doc:\/\/OSLogKit\/documentation\/OSLogKit\/GettingStarted","doc:\/\/OSLogKit\/documentation\/OSLogKit\/OSLogError"]]},"references":{"doc://OSLogKit/documentation/OSLogKit/OSLogError":{"role":"symbol","title":"OSLogError","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"kind":"identifier","text":"OSLogError"}],"abstract":[{"type":"text","text":"OSLogKit uses OSLogError to throw correct error for various failures"}],"identifier":"doc:\/\/OSLogKit\/documentation\/OSLogKit\/OSLogError","kind":"symbol","type":"topic","navigatorTitle":[{"kind":"identifier","text":"OSLogError"}],"url":"\/documentation\/oslogkit\/oslogerror"},"doc://OSLogKit/documentation/OSLogKit/OSLogError/exportFailure(_:)":{"role":"symbol","title":"OSLogError.exportFailure(_:)","fragments":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"kind":"identifier","text":"exportFailure"},{"kind":"text","text":"("},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"kind":"text","text":")"}],"abstract":[],"identifier":"doc:\/\/OSLogKit\/documentation\/OSLogKit\/OSLogError\/exportFailure(_:)","kind":"symbol","type":"topic","url":"\/documentation\/oslogkit\/oslogerror\/exportfailure(_:)"},"doc://OSLogKit/documentation/OSLogKit":{"role":"collection","title":"OSLogKit","abstract":[{"type":"text","text":"A Layer 2 framework for OSLog which makes its adoption more easier⌨️"}],"identifier":"doc:\/\/OSLogKit\/documentation\/OSLogKit","kind":"symbol","type":"topic","url":"\/documentation\/oslogkit"},"doc://OSLogKit/documentation/OSLogKit/GettingStarted":{"role":"collectionGroup","title":"Getting Started","abstract":[{"type":"text","text":"OSLogKit helps you to adopt OSLog into your code base with ease. The powerful API’s of OSLogKit make it easy to perform various logging operations."}],"identifier":"doc:\/\/OSLogKit\/documentation\/OSLogKit\/GettingStarted","kind":"article","type":"topic","url":"\/documentation\/oslogkit\/gettingstarted"}}} -------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/data/documentation/oslogkit/oslogerror/errordescription.json: -------------------------------------------------------------------------------- 1 | {"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"kind":"identifier","text":"errorDescription"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"kind":"text","text":" { "},{"kind":"keyword","text":"get"},{"kind":"text","text":" }"}],"languages":["swift"],"platforms":["iOS"]}]}],"schemaVersion":{"major":0,"minor":3,"patch":0},"sections":[],"variants":[{"paths":["\/documentation\/oslogkit\/oslogerror\/errordescription"],"traits":[{"interfaceLanguage":"swift"}]}],"identifier":{"url":"doc:\/\/OSLogKit\/documentation\/OSLogKit\/OSLogError\/errorDescription","interfaceLanguage":"swift"},"kind":"symbol","metadata":{"fragments":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"kind":"identifier","text":"errorDescription"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"}],"title":"errorDescription","roleHeading":"Instance Property","role":"symbol","symbolKind":"property","externalID":"s:8OSLogKit0A5ErrorO16errorDescriptionSSvp","modules":[{"name":"OSLogKit"}]},"hierarchy":{"paths":[["doc:\/\/OSLogKit\/documentation\/OSLogKit","doc:\/\/OSLogKit\/documentation\/OSLogKit\/OSLogError"],["doc:\/\/OSLogKit\/documentation\/OSLogKit","doc:\/\/OSLogKit\/documentation\/OSLogKit\/GettingStarted","doc:\/\/OSLogKit\/documentation\/OSLogKit\/OSLogError"]]},"references":{"doc://OSLogKit/documentation/OSLogKit/GettingStarted":{"role":"collectionGroup","title":"Getting Started","abstract":[{"type":"text","text":"OSLogKit helps you to adopt OSLog into your code base with ease. The powerful API’s of OSLogKit make it easy to perform various logging operations."}],"identifier":"doc:\/\/OSLogKit\/documentation\/OSLogKit\/GettingStarted","kind":"article","type":"topic","url":"\/documentation\/oslogkit\/gettingstarted"},"doc://OSLogKit/documentation/OSLogKit/OSLogError/errorDescription":{"role":"symbol","title":"errorDescription","fragments":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"kind":"identifier","text":"errorDescription"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"}],"abstract":[],"identifier":"doc:\/\/OSLogKit\/documentation\/OSLogKit\/OSLogError\/errorDescription","kind":"symbol","type":"topic","url":"\/documentation\/oslogkit\/oslogerror\/errordescription"},"doc://OSLogKit/documentation/OSLogKit":{"role":"collection","title":"OSLogKit","abstract":[{"type":"text","text":"A Layer 2 framework for OSLog which makes its adoption more easier⌨️"}],"identifier":"doc:\/\/OSLogKit\/documentation\/OSLogKit","kind":"symbol","type":"topic","url":"\/documentation\/oslogkit"},"doc://OSLogKit/documentation/OSLogKit/OSLogError":{"role":"symbol","title":"OSLogError","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"kind":"identifier","text":"OSLogError"}],"abstract":[{"type":"text","text":"OSLogKit uses OSLogError to throw correct error for various failures"}],"identifier":"doc:\/\/OSLogKit\/documentation\/OSLogKit\/OSLogError","kind":"symbol","type":"topic","navigatorTitle":[{"kind":"identifier","text":"OSLogError"}],"url":"\/documentation\/oslogkit\/oslogerror"}}} -------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/js/highlight-js-bash.1b52852f.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * This source file is part of the Swift.org open source project 3 | * 4 | * Copyright (c) 2021 Apple Inc. and the Swift project authors 5 | * Licensed under Apache License v2.0 with Runtime Library Exception 6 | * 7 | * See https://swift.org/LICENSE.txt for license information 8 | * See https://swift.org/CONTRIBUTORS.txt for Swift project authors 9 | */ 10 | (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["highlight-js-bash"],{f0f8:function(e,s){function t(e){const s=e.regex,t={},n={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[t]}]};Object.assign(t,{className:"variable",variants:[{begin:s.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},n]});const a={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},i={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},c={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t,a]};a.contains.push(c);const o={className:"",begin:/\\"/},r={className:"string",begin:/'/,end:/'/},l={begin:/\$\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,t]},p=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],d=e.SHEBANG({binary:`(${p.join("|")})`,relevance:10}),h={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},m=["if","then","else","elif","fi","for","while","in","do","done","case","esac","function"],u=["true","false"],b={match:/(\/[a-z._-]+)+/},g=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],f=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","type","typeset","ulimit","unalias"],w=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],k=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh"],keywords:{$pattern:/\b[a-z._-]+\b/,keyword:m,literal:u,built_in:[...g,...f,"set","shopt",...w,...k]},contains:[d,e.SHEBANG(),h,l,e.HASH_COMMENT_MODE,i,b,c,o,r,t]}}e.exports=t}}]); -------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/js/highlight-js-custom-markdown.7cffc4b3.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * This source file is part of the Swift.org open source project 3 | * 4 | * Copyright (c) 2021 Apple Inc. and the Swift project authors 5 | * Licensed under Apache License v2.0 with Runtime Library Exception 6 | * 7 | * See https://swift.org/LICENSE.txt for license information 8 | * See https://swift.org/CONTRIBUTORS.txt for Swift project authors 9 | */ 10 | (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["highlight-js-custom-markdown","highlight-js-markdown"],{"04b0":function(n,e){function a(n){const e=n.regex,a={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},i={begin:"^[-\\*]{3,}",end:"$"},s={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},t={className:"bullet",begin:"^[ \t]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},c={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},d=/[A-Za-z][A-Za-z0-9+.-]*/,l={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:e.concat(/\[.+?\]\(/,d,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},g={className:"strong",contains:[],variants:[{begin:/_{2}/,end:/_{2}/},{begin:/\*{2}/,end:/\*{2}/}]},o={className:"emphasis",contains:[],variants:[{begin:/\*(?!\*)/,end:/\*/},{begin:/_(?!_)/,end:/_/,relevance:0}]};g.contains.push(o),o.contains.push(g);let r=[a,l];g.contains=g.contains.concat(r),o.contains=o.contains.concat(r),r=r.concat(g,o);const b={className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:r},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:r}]}]},u={className:"quote",begin:"^>\\s+",contains:r,end:"$"};return{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[b,a,t,g,o,u,s,i,l,c]}}n.exports=a},"84cb":function(n,e,a){"use strict";a.r(e);var i=a("04b0"),s=a.n(i);const t={begin:"",returnBegin:!0,contains:[{className:"link",begin:"doc:",end:">",excludeEnd:!0}]},c={className:"link",begin:/`{2}(?!`)/,end:/`{2}(?!`)/,excludeBegin:!0,excludeEnd:!0},d={begin:"^>\\s+[Note:|Tip:|Important:|Experiment:|Warning:]",end:"$",returnBegin:!0,contains:[{className:"quote",begin:"^>",end:"\\s+"},{className:"type",begin:"Note|Tip|Important|Experiment|Warning",end:":"},{className:"quote",begin:".*",end:"$",endsParent:!0}]},l={begin:"@",end:"[{\\)\\s]",returnBegin:!0,contains:[{className:"title",begin:"@",end:"[\\s+(]",excludeEnd:!0},{begin:":",end:"[,\\)\n\t]",excludeBegin:!0,keywords:{literal:"true false null undefined"},contains:[{className:"number",begin:"\\b([\\d_]+(\\.[\\deE_]+)?|0x[a-fA-F0-9_]+(\\.[a-fA-F0-9p_]+)?|0b[01_]+|0o[0-7_]+)\\b",endsWithParent:!0,excludeEnd:!0},{className:"string",variants:[{begin:/"""/,end:/"""/},{begin:/"/,end:/"/}],endsParent:!0},{className:"link",begin:"http|https",endsWithParent:!0,excludeEnd:!0}]}]};e["default"]=function(n){const e=s()(n),a=e.contains.find(({className:n})=>"code"===n);a.variants=a.variants.filter(({begin:n})=>!n.includes("( {4}|\\t)"));const i=[...e.contains.filter(({className:n})=>"code"!==n),a];return{...e,contains:[c,t,d,l,...i]}}}}]); -------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/js/highlight-js-python.c214ed92.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * This source file is part of the Swift.org open source project 3 | * 4 | * Copyright (c) 2021 Apple Inc. and the Swift project authors 5 | * Licensed under Apache License v2.0 with Runtime Library Exception 6 | * 7 | * See https://swift.org/LICENSE.txt for license information 8 | * See https://swift.org/CONTRIBUTORS.txt for Swift project authors 9 | */ 10 | (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["highlight-js-python"],{9510:function(e,n){function a(e){const n=e.regex,a=/[\p{XID_Start}_]\p{XID_Continue}*/u,i=["and","as","assert","async","await","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],s=["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],t=["__debug__","Ellipsis","False","None","NotImplemented","True"],r=["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"],l={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:i,built_in:s,literal:t,type:r},o={className:"meta",begin:/^(>>>|\.\.\.) /},b={className:"subst",begin:/\{/,end:/\}/,keywords:l,illegal:/#/},c={begin:/\{\{/,relevance:0},d={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,o],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,o],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,o,c,b]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,o,c,b]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,c,b]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,c,b]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},p="[0-9](_?[0-9])*",g=`(\\b(${p}))?\\.(${p})|\\b(${p})\\.`,m={className:"number",relevance:0,variants:[{begin:`(\\b(${p})|(${g}))[eE][+-]?(${p})[jJ]?\\b`},{begin:`(${g})[jJ]?`},{begin:"\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?\\b"},{begin:"\\b0[bB](_?[01])+[lL]?\\b"},{begin:"\\b0[oO](_?[0-7])+[lL]?\\b"},{begin:"\\b0[xX](_?[0-9a-fA-F])+[lL]?\\b"},{begin:`\\b(${p})[jJ]\\b`}]},_={className:"comment",begin:n.lookahead(/# type:/),end:/$/,keywords:l,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},u={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:["self",o,m,d,e.HASH_COMMENT_MODE]}]};return b.contains=[d,m,o],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:l,illegal:/(<\/|->|\?)|=>/,contains:[o,m,{begin:/\bself\b/},{beginKeywords:"if",relevance:0},d,_,e.HASH_COMMENT_MODE,{match:[/def/,/\s+/,a],scope:{1:"keyword",3:"title.function"},contains:[u]},{variants:[{match:[/class/,/\s+/,a,/\s*/,/\(\s*/,a,/\s*\)/]},{match:[/class/,/\s+/,a]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[m,u,d]}]}}e.exports=a}}]); -------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/js/highlight-js-ruby.f889d392.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * This source file is part of the Swift.org open source project 3 | * 4 | * Copyright (c) 2021 Apple Inc. and the Swift project authors 5 | * Licensed under Apache License v2.0 with Runtime Library Exception 6 | * 7 | * See https://swift.org/LICENSE.txt for license information 8 | * See https://swift.org/CONTRIBUTORS.txt for Swift project authors 9 | */ 10 | (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["highlight-js-ruby"],{"82cb":function(e,n){function a(e){const n=e.regex,a="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",i={keyword:"and then defined module in return redo if BEGIN retry end for self when next until do begin unless END rescue else break undef not super class case require yield alias while ensure elsif or include attr_reader attr_writer attr_accessor __FILE__",built_in:"proc lambda",literal:"true false nil"},s={className:"doctag",begin:"@[A-Za-z]+"},b={begin:"#<",end:">"},c=[e.COMMENT("#","$",{contains:[s]}),e.COMMENT("^=begin","^=end",{contains:[s],relevance:10}),e.COMMENT("^__END__","\\n$")],r={className:"subst",begin:/#\{/,end:/\}/,keywords:i},d={className:"string",contains:[e.BACKSLASH_ESCAPE,r],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:n.concat(/<<[-~]?'?/,n.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,r]})]}]},t="[1-9](_?[0-9])*|0",o="[0-9](_?[0-9])*",g={className:"number",relevance:0,variants:[{begin:`\\b(${t})(\\.(${o}))?([eE][+-]?(${o})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},l={className:"params",begin:"\\(",end:"\\)",endsParent:!0,keywords:i},_=[d,{className:"class",beginKeywords:"class module",end:"$|;",illegal:/=/,contains:[e.inherit(e.TITLE_MODE,{begin:"[A-Za-z_]\\w*(::\\w+)*(\\?|!)?"}),{begin:"<\\s*",contains:[{begin:"("+e.IDENT_RE+"::)?"+e.IDENT_RE,relevance:0}]}].concat(c)},{className:"function",begin:n.concat(/def\s+/,n.lookahead(a+"\\s*(\\(|;|$)")),relevance:0,keywords:"def",end:"$|;",contains:[e.inherit(e.TITLE_MODE,{begin:a}),l].concat(c)},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[d,{begin:a}],relevance:0},g,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|/,end:/\|/,relevance:0,keywords:i},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,r],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(b,c),relevance:0}].concat(b,c);r.contains=_,l.contains=_;const w="[>?]>",E="[\\w#]+\\(\\w+\\):\\d+:\\d+>",u="(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>",N=[{begin:/^\s*=>/,starts:{end:"$",contains:_}},{className:"meta",begin:"^("+w+"|"+E+"|"+u+")(?=[ ])",starts:{end:"$",contains:_}}];return c.unshift(b),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:i,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(N).concat(c).concat(_)}}e.exports=a}}]); -------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/index.html: -------------------------------------------------------------------------------- 1 | Documentation
-------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/documentation/oslogkit/index.html: -------------------------------------------------------------------------------- 1 | Documentation
-------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/documentation/oslogkit/oslogkit/index.html: -------------------------------------------------------------------------------- 1 | Documentation
-------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/documentation/oslogkit/swiftui/index.html: -------------------------------------------------------------------------------- 1 | Documentation
-------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/documentation/oslogkit/oslogerror/index.html: -------------------------------------------------------------------------------- 1 | Documentation
-------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/documentation/oslogkit/oslogspan/index.html: -------------------------------------------------------------------------------- 1 | Documentation
-------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/documentation/oslogkit/swiftui/view/index.html: -------------------------------------------------------------------------------- 1 | Documentation
-------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/documentation/oslogkit/gettingstarted/index.html: -------------------------------------------------------------------------------- 1 | Documentation
-------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/documentation/oslogkit/oslogkit/init()/index.html: -------------------------------------------------------------------------------- 1 | Documentation
-------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/documentation/oslogkit/oslogspan/day(_:)/index.html: -------------------------------------------------------------------------------- 1 | Documentation
-------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/documentation/oslogkit/oslogspan/hour(_:)/index.html: -------------------------------------------------------------------------------- 1 | Documentation
-------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/documentation/oslogkit/oslogspan/minute(_:)/index.html: -------------------------------------------------------------------------------- 1 | Documentation
-------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/documentation/oslogkit/oslogerror/errordescription/index.html: -------------------------------------------------------------------------------- 1 | Documentation
-------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/documentation/oslogkit/oslogerror/exportfailure(_:)/index.html: -------------------------------------------------------------------------------- 1 | Documentation
-------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/documentation/oslogkit/oslogerror/invalidsubsystem/index.html: -------------------------------------------------------------------------------- 1 | Documentation
-------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/documentation/oslogkit/oslogerror/error-implementations/index.html: -------------------------------------------------------------------------------- 1 | Documentation
-------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/documentation/oslogkit/oslogerror/localizeddescription/index.html: -------------------------------------------------------------------------------- 1 | Documentation
-------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/documentation/oslogkit/oslogkit/capture(level:message:)/index.html: -------------------------------------------------------------------------------- 1 | Documentation
-------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/documentation/oslogkit/oslogkit/init(subsystem:category:)/index.html: -------------------------------------------------------------------------------- 1 | Documentation
-------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/documentation/oslogkit/swiftui/view/capturelogontap(_:_:_:_:)/index.html: -------------------------------------------------------------------------------- 1 | Documentation
-------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/documentation/oslogkit/oslogkit/captureinbulk(levels:messages:)/index.html: -------------------------------------------------------------------------------- 1 | Documentation
-------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/documentation/oslogkit/swiftui/view/capturebulklogontap(_:_:_:_:)/index.html: -------------------------------------------------------------------------------- 1 | Documentation
-------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/documentation/oslogkit/swiftui/view/capturelogonappear(_:_:_:_:)/index.html: -------------------------------------------------------------------------------- 1 | Documentation
-------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/documentation/oslogkit/swiftui/view/capturelogonsubmit(_:_:_:_:)/index.html: -------------------------------------------------------------------------------- 1 | Documentation
-------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/documentation/oslogkit/swiftui/view/capturebulklogonappear(_:_:_:_:)/index.html: -------------------------------------------------------------------------------- 1 | Documentation
-------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/documentation/oslogkit/swiftui/view/capturebulklogondisappear(_:_:_:_:)/index.html: -------------------------------------------------------------------------------- 1 | Documentation
-------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/documentation/oslogkit/swiftui/view/capturebulklogonlongpress(_:_:_:_:)/index.html: -------------------------------------------------------------------------------- 1 | Documentation
-------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/documentation/oslogkit/swiftui/view/capturebulklogonsubmit(_:_:_:_:)/index.html: -------------------------------------------------------------------------------- 1 | Documentation
-------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/documentation/oslogkit/swiftui/view/capturelogondisappear(_:_:_:_:)/index.html: -------------------------------------------------------------------------------- 1 | Documentation
-------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/documentation/oslogkit/swiftui/view/capturelogonlongpress(_:_:_:_:)/index.html: -------------------------------------------------------------------------------- 1 | Documentation
-------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/documentation/oslogkit/oslogkit/exportlogs(forsubsystem:timespan:completion:)/index.html: -------------------------------------------------------------------------------- 1 | Documentation
-------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/js/highlight-js-c.d1db3f17.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * This source file is part of the Swift.org open source project 3 | * 4 | * Copyright (c) 2021 Apple Inc. and the Swift project authors 5 | * Licensed under Apache License v2.0 with Runtime Library Exception 6 | * 7 | * See https://swift.org/LICENSE.txt for license information 8 | * See https://swift.org/CONTRIBUTORS.txt for Swift project authors 9 | */ 10 | (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["highlight-js-c"],{"1fe5":function(e,n){function s(e){const n=e.regex,s=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),t="decltype\\(auto\\)",a="[a-zA-Z_]\\w*::",i="<[^<>]+>",r="("+t+"|"+n.optional(a)+"[a-zA-Z_]\\w*"+n.optional(i)+")",l={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},o="\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)",c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+o+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},d={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},u={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(c,{className:"string"}),{className:"string",begin:/<.*?>/},s,e.C_BLOCK_COMMENT_MODE]},g={className:"title",begin:n.optional(a)+e.IDENT_RE,relevance:0},p=n.optional(a)+e.IDENT_RE+"\\s*\\(",m=["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],_=["float","double","signed","unsigned","int","short","long","char","void","_Bool","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal128","const","static","complex","bool","imaginary"],f={keyword:m,type:_,literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},b=[u,l,s,e.C_BLOCK_COMMENT_MODE,d,c],w={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:f,contains:b.concat([{begin:/\(/,end:/\)/,keywords:f,contains:b.concat(["self"]),relevance:0}]),relevance:0},h={begin:"("+r+"[\\*&\\s]+)+"+p,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:f,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:t,keywords:f,relevance:0},{begin:p,returnBegin:!0,contains:[e.inherit(g,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:f,relevance:0,contains:[s,e.C_BLOCK_COMMENT_MODE,c,d,l,{begin:/\(/,end:/\)/,keywords:f,relevance:0,contains:["self",s,e.C_BLOCK_COMMENT_MODE,c,d,l]}]},l,s,e.C_BLOCK_COMMENT_MODE,u]};return{name:"C",aliases:["h"],keywords:f,disableAutodetect:!0,illegal:"=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:u,strings:c,keywords:f}}}e.exports=s}}]); -------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/data/documentation/oslogkit/oslogerror/localizeddescription.json: -------------------------------------------------------------------------------- 1 | {"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"kind":"identifier","text":"localizedDescription"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"kind":"text","text":" { "},{"kind":"keyword","text":"get"},{"kind":"text","text":" }"}],"languages":["swift"],"platforms":["iOS"]}]}],"schemaVersion":{"major":0,"minor":3,"patch":0},"sections":[],"variants":[{"paths":["\/documentation\/oslogkit\/oslogerror\/localizeddescription"],"traits":[{"interfaceLanguage":"swift"}]}],"identifier":{"url":"doc:\/\/OSLogKit\/documentation\/OSLogKit\/OSLogError\/localizedDescription","interfaceLanguage":"swift"},"abstract":[{"type":"text","text":"Inherited from "},{"type":"codeVoice","code":"Error.localizedDescription"},{"type":"text","text":"."}],"kind":"symbol","metadata":{"modules":[{"name":"OSLogKit","relatedModules":["Swift"]}],"role":"symbol","title":"localizedDescription","roleHeading":"Instance Property","fragments":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"kind":"identifier","text":"localizedDescription"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"}],"symbolKind":"property","externalID":"s:s5ErrorP10FoundationE20localizedDescriptionSSvp::SYNTHESIZED::s:8OSLogKit0A5ErrorO","extendedModule":"Swift","platforms":[{"beta":false,"unavailable":false,"name":"iOS","introducedAt":"8.0","deprecated":false},{"beta":false,"unavailable":false,"name":"macOS","introducedAt":"10.10","deprecated":false},{"beta":false,"unavailable":false,"name":"tvOS","introducedAt":"9.0","deprecated":false},{"beta":false,"unavailable":false,"name":"watchOS","introducedAt":"2.0","deprecated":false}]},"hierarchy":{"paths":[["doc:\/\/OSLogKit\/documentation\/OSLogKit","doc:\/\/OSLogKit\/documentation\/OSLogKit\/OSLogError","doc:\/\/OSLogKit\/documentation\/OSLogKit\/OSLogError\/Error-Implementations"],["doc:\/\/OSLogKit\/documentation\/OSLogKit","doc:\/\/OSLogKit\/documentation\/OSLogKit\/GettingStarted","doc:\/\/OSLogKit\/documentation\/OSLogKit\/OSLogError","doc:\/\/OSLogKit\/documentation\/OSLogKit\/OSLogError\/Error-Implementations"]]},"references":{"doc://OSLogKit/documentation/OSLogKit/OSLogError/localizedDescription":{"role":"symbol","title":"localizedDescription","fragments":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"kind":"identifier","text":"localizedDescription"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"}],"abstract":[],"identifier":"doc:\/\/OSLogKit\/documentation\/OSLogKit\/OSLogError\/localizedDescription","kind":"symbol","type":"topic","url":"\/documentation\/oslogkit\/oslogerror\/localizeddescription"},"doc://OSLogKit/documentation/OSLogKit/OSLogError/Error-Implementations":{"role":"collectionGroup","title":"Error Implementations","abstract":[],"identifier":"doc:\/\/OSLogKit\/documentation\/OSLogKit\/OSLogError\/Error-Implementations","kind":"article","type":"topic","url":"\/documentation\/oslogkit\/oslogerror\/error-implementations"},"doc://OSLogKit/documentation/OSLogKit":{"role":"collection","title":"OSLogKit","abstract":[{"type":"text","text":"A Layer 2 framework for OSLog which makes its adoption more easier⌨️"}],"identifier":"doc:\/\/OSLogKit\/documentation\/OSLogKit","kind":"symbol","type":"topic","url":"\/documentation\/oslogkit"},"doc://OSLogKit/documentation/OSLogKit/OSLogError":{"role":"symbol","title":"OSLogError","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"kind":"identifier","text":"OSLogError"}],"abstract":[{"type":"text","text":"OSLogKit uses OSLogError to throw correct error for various failures"}],"identifier":"doc:\/\/OSLogKit\/documentation\/OSLogKit\/OSLogError","kind":"symbol","type":"topic","navigatorTitle":[{"kind":"identifier","text":"OSLogError"}],"url":"\/documentation\/oslogkit\/oslogerror"},"doc://OSLogKit/documentation/OSLogKit/GettingStarted":{"role":"collectionGroup","title":"Getting Started","abstract":[{"type":"text","text":"OSLogKit helps you to adopt OSLog into your code base with ease. The powerful API’s of OSLogKit make it easy to perform various logging operations."}],"identifier":"doc:\/\/OSLogKit\/documentation\/OSLogKit\/GettingStarted","kind":"article","type":"topic","url":"\/documentation\/oslogkit\/gettingstarted"}}} -------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/js/highlight-js-php.cc8d6c27.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * This source file is part of the Swift.org open source project 3 | * 4 | * Copyright (c) 2021 Apple Inc. and the Swift project authors 5 | * Licensed under Apache License v2.0 with Runtime Library Exception 6 | * 7 | * See https://swift.org/LICENSE.txt for license information 8 | * See https://swift.org/CONTRIBUTORS.txt for Swift project authors 9 | */ 10 | (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["highlight-js-php"],{2907:function(e,r){function t(e){const r={className:"variable",begin:"\\$+[a-zA-Z_-ÿ][a-zA-Z0-9_-ÿ]*(?![A-Za-z0-9])(?![$])"},t={className:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?[=]?/},{begin:/\?>/}]},a={className:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},n=e.inherit(e.APOS_STRING_MODE,{illegal:null}),i=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(a)}),o=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*(\w+)\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(a)}),l={className:"string",contains:[e.BACKSLASH_ESCAPE,t],variants:[e.inherit(n,{begin:"b'",end:"'"}),e.inherit(i,{begin:'b"',end:'"'}),i,n,o]},c={className:"number",variants:[{begin:"\\b0b[01]+(?:_[01]+)*\\b"},{begin:"\\b0o[0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0x[\\da-f]+(?:_[\\da-f]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:e[+-]?\\d+)?"}],relevance:0},s={keyword:"__CLASS__ __DIR__ __FILE__ __FUNCTION__ __LINE__ __METHOD__ __NAMESPACE__ __TRAIT__ die echo exit include include_once print require require_once array abstract and as binary bool boolean break callable case catch class clone const continue declare default do double else elseif empty enddeclare endfor endforeach endif endswitch endwhile enum eval extends final finally float for foreach from global goto if implements instanceof insteadof int integer interface isset iterable list match|0 mixed new object or private protected public real return string switch throw trait try unset use var void while xor yield",literal:"false null true",built_in:"Error|0 AppendIterator ArgumentCountError ArithmeticError ArrayIterator ArrayObject AssertionError BadFunctionCallException BadMethodCallException CachingIterator CallbackFilterIterator CompileError Countable DirectoryIterator DivisionByZeroError DomainException EmptyIterator ErrorException Exception FilesystemIterator FilterIterator GlobIterator InfiniteIterator InvalidArgumentException IteratorIterator LengthException LimitIterator LogicException MultipleIterator NoRewindIterator OutOfBoundsException OutOfRangeException OuterIterator OverflowException ParentIterator ParseError RangeException RecursiveArrayIterator RecursiveCachingIterator RecursiveCallbackFilterIterator RecursiveDirectoryIterator RecursiveFilterIterator RecursiveIterator RecursiveIteratorIterator RecursiveRegexIterator RecursiveTreeIterator RegexIterator RuntimeException SeekableIterator SplDoublyLinkedList SplFileInfo SplFileObject SplFixedArray SplHeap SplMaxHeap SplMinHeap SplObjectStorage SplObserver SplObserver SplPriorityQueue SplQueue SplStack SplSubject SplSubject SplTempFileObject TypeError UnderflowException UnexpectedValueException UnhandledMatchError ArrayAccess Closure Generator Iterator IteratorAggregate Serializable Stringable Throwable Traversable WeakReference WeakMap Directory __PHP_Incomplete_Class parent php_user_filter self static stdClass"};return{case_insensitive:!0,keywords:s,contains:[e.HASH_COMMENT_MODE,e.COMMENT("//","$",{contains:[t]}),e.COMMENT("/\\*","\\*/",{contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.COMMENT("__halt_compiler.+?;",!1,{endsWithParent:!0,keywords:"__halt_compiler"}),t,{className:"keyword",begin:/\$this\b/},r,{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{className:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:s,contains:["self",r,e.C_BLOCK_COMMENT_MODE,l,c]}]},{className:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"use",relevance:0,end:";",contains:[e.UNDERSCORE_TITLE_MODE]},l,c]}}e.exports=t}}]); -------------------------------------------------------------------------------- /Sources/OSLogKit/OSLogKit.swift: -------------------------------------------------------------------------------- 1 | import OSLog 2 | import SwiftUI 3 | 4 | 5 | @available(iOS 14.0, *) 6 | @available(macOS 11.0, *) 7 | @available(xrOS 1.0, *) 8 | @available(tvOS 14.0, *) 9 | @available(watchOS 7.0, *) 10 | public class OSLogKit { 11 | 12 | // Classic Logger instance which sources all loggings 13 | let logger: Logger 14 | 15 | /// Creates a logger for logging to the default subsystem. 16 | public init() { 17 | logger = Logger() 18 | } 19 | 20 | /// Creates a logger instance from an existing OSLog object that has the subsystem and category 21 | /// - Parameters: 22 | /// - subSystem: An identifier string, in reverse DNS notation, that represents the app subsystem that’s logging information, such as com.your_company.your_subsystem_name. 23 | /// - category: A category within the specified subsystem. The system uses this value to categorize and filter related log messages, and to group related logging settings within the subsystem. 24 | public init(subSystem: String, category: String) { 25 | self.logger = Logger(subsystem: subSystem, category: category) 26 | } 27 | 28 | 29 | /// Writes a message to the log using the specified log type 30 | /// - Parameters: 31 | /// - level: Specifies the level on which the log needs to be captured (https://developer.apple.com/documentation/os/oslogtype) 32 | /// - message: The interpolated string that the logger writes to the log 33 | public func capture(level: OSLogType? = nil, message: String) { 34 | 35 | guard let level else { 36 | logger.log("\(message)") 37 | return 38 | } 39 | 40 | logger.log(level: level, "\(message)") 41 | } 42 | 43 | 44 | /// Writes a bulk of message to the log using the specified log type 45 | /// - Parameters: 46 | /// - levels: Specifies the levels on which the logs needs to be captured (https://developer.apple.com/documentation/os/oslogtype) 47 | /// - messages: The interpolated strings that the logger writes to the log 48 | public func captureInBulk(levels: [OSLogType] = [], messages: [String]) { 49 | 50 | if levels.isEmpty { 51 | messages.forEach { message in 52 | self.logger.log("\(message)") 53 | } 54 | } else { 55 | for (level, message) in zip(levels, messages) { 56 | logger.log(level: level, "\(message)") 57 | } 58 | } 59 | } 60 | 61 | /// Exports the log entries for a specific SubSystem within the specified time span 62 | /// - Parameters: 63 | /// - subsystem: Identifier string used while initialising the OSLogKit. If not used Bundle ID of the app is taken into consideration 64 | /// - span: Duration for which the log needs to be fetched. Logs are available for limited period of time, select span accordingly 65 | /// - completion: Block returns array of logs captured if the process succeeds and on failure OSLogKit provides the error. 66 | /// Exported Log format - `[[Date] [Category] message]` 67 | @available(iOS 15.0, *) 68 | public func exportLogs(forSubsystem subsystem: String = "", timeSpan span: OSLogSpan = .day(1), completion: @escaping((Result<[String], OSLogError>) -> ())) { 69 | 70 | var logEntries: [String] = [] 71 | var subSystemString = subsystem 72 | 73 | if subsystem.isEmpty { 74 | guard let bundleId = Bundle.main.bundleIdentifier else { 75 | completion(.failure(.invalidSubsystem)) 76 | return 77 | } 78 | subSystemString = bundleId 79 | } 80 | 81 | do { 82 | let store = try OSLogStore(scope: .currentProcessIdentifier) 83 | let date = Date.now.addingTimeInterval(span.getTimeInterval) 84 | let position = store.position(date: date) 85 | 86 | logEntries = try store 87 | .getEntries(at: position) 88 | .compactMap { $0 as? OSLogEntryLog } 89 | .filter { $0.subsystem == subSystemString } 90 | .map { "[\($0.date.formatted())] [\($0.category)] \($0.composedMessage)" } 91 | completion(.success(logEntries)) 92 | 93 | } catch { 94 | completion(.failure(.exportFailure("OSLogKit export error: \(error.localizedDescription)"))) 95 | self.logger.warning("OSLogKit export error: \(error.localizedDescription, privacy: .public)") 96 | } 97 | } 98 | } 99 | -------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/data/documentation/oslogkit.json: -------------------------------------------------------------------------------- 1 | {"primaryContentSections":[{"kind":"content","content":[{"anchor":"Overview","level":2,"type":"heading","text":"Overview"},{"type":"paragraph","inlineContent":[{"type":"text","text":"OSLogKit is a layer 2 framework developed on top of the native OSLog system, aiming to simplify the integration of OSLog into your project. Apple has done an excellent job in ensuring that OSLogging is straightforward and easy to use. However, when it comes to implementing OSLog in your codebase, can be challenging."}]},{"type":"paragraph","inlineContent":[{"type":"text","text":"To address this, OSLogKit has been developed, further simplifying the process of adopting OSLog. One notable advantage of OSLogKit is that it offers additional functionalities not available in the native API."}]},{"type":"paragraph","inlineContent":[{"type":"text","text":"OSLogKit has a variety of Modifiers which makes OSLogKit adoption very easy. Don’t worry if your code base is in UIKit, you can still adopt it quickly."}]},{"type":"paragraph","inlineContent":[{"type":"image","identifier":"LogKitBanner.png"}]}]}],"schemaVersion":{"major":0,"minor":3,"patch":0},"sections":[],"variants":[{"paths":["\/documentation\/oslogkit"],"traits":[{"interfaceLanguage":"swift"}]}],"identifier":{"url":"doc:\/\/OSLogKit\/documentation\/OSLogKit","interfaceLanguage":"swift"},"abstract":[{"type":"text","text":"A Layer 2 framework for OSLog which makes its adoption more easier⌨️"}],"kind":"symbol","metadata":{"roleHeading":"Framework","externalID":"OSLogKit","title":"OSLogKit","symbolKind":"module","role":"collection","modules":[{"name":"OSLogKit"}]},"hierarchy":{"paths":[[]]},"topicSections":[{"title":"Classes","identifiers":["doc:\/\/OSLogKit\/documentation\/OSLogKit\/OSLogKit"]},{"title":"Usage","identifiers":["doc:\/\/OSLogKit\/documentation\/OSLogKit\/GettingStarted"]},{"title":"Enumerations","identifiers":["doc:\/\/OSLogKit\/documentation\/OSLogKit\/OSLogError","doc:\/\/OSLogKit\/documentation\/OSLogKit\/OSLogSpan"]},{"title":"Extended Modules","identifiers":["doc:\/\/OSLogKit\/documentation\/OSLogKit\/SwiftUI"]}],"references":{"doc://OSLogKit/documentation/OSLogKit/OSLogError":{"role":"symbol","title":"OSLogError","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"kind":"identifier","text":"OSLogError"}],"abstract":[{"type":"text","text":"OSLogKit uses OSLogError to throw correct error for various failures"}],"identifier":"doc:\/\/OSLogKit\/documentation\/OSLogKit\/OSLogError","kind":"symbol","type":"topic","navigatorTitle":[{"kind":"identifier","text":"OSLogError"}],"url":"\/documentation\/oslogkit\/oslogerror"},"LogKitBanner.png":{"alt":"OSLogKit","type":"image","identifier":"LogKitBanner.png","variants":[{"url":"\/images\/LogKitBanner.png","traits":["1x","light"]}]},"doc://OSLogKit/documentation/OSLogKit/OSLogSpan":{"role":"symbol","title":"OSLogSpan","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"kind":"identifier","text":"OSLogSpan"}],"abstract":[{"type":"text","text":"OSLogKit uses OSLogSpan to calculate the duration for which the log needs to be fetched"}],"identifier":"doc:\/\/OSLogKit\/documentation\/OSLogKit\/OSLogSpan","kind":"symbol","type":"topic","navigatorTitle":[{"kind":"identifier","text":"OSLogSpan"}],"url":"\/documentation\/oslogkit\/oslogspan"},"doc://OSLogKit/documentation/OSLogKit/SwiftUI":{"role":"collection","title":"SwiftUI","abstract":[],"identifier":"doc:\/\/OSLogKit\/documentation\/OSLogKit\/SwiftUI","kind":"symbol","type":"topic","url":"\/documentation\/oslogkit\/swiftui"},"doc://OSLogKit/documentation/OSLogKit":{"role":"collection","title":"OSLogKit","abstract":[{"type":"text","text":"A Layer 2 framework for OSLog which makes its adoption more easier⌨️"}],"identifier":"doc:\/\/OSLogKit\/documentation\/OSLogKit","kind":"symbol","type":"topic","url":"\/documentation\/oslogkit"},"doc://OSLogKit/documentation/OSLogKit/OSLogKit":{"role":"symbol","title":"OSLogKit","fragments":[{"kind":"keyword","text":"class"},{"kind":"text","text":" "},{"kind":"identifier","text":"OSLogKit"}],"abstract":[],"identifier":"doc:\/\/OSLogKit\/documentation\/OSLogKit\/OSLogKit","kind":"symbol","type":"topic","navigatorTitle":[{"kind":"identifier","text":"OSLogKit"}],"url":"\/documentation\/oslogkit\/oslogkit"},"doc://OSLogKit/documentation/OSLogKit/GettingStarted":{"role":"collectionGroup","title":"Getting Started","abstract":[{"type":"text","text":"OSLogKit helps you to adopt OSLog into your code base with ease. The powerful API’s of OSLogKit make it easy to perform various logging operations."}],"identifier":"doc:\/\/OSLogKit\/documentation\/OSLogKit\/GettingStarted","kind":"article","type":"topic","url":"\/documentation\/oslogkit\/gettingstarted"}}} -------------------------------------------------------------------------------- /Docs/OSLogKit.doccarchive/js/highlight-js-perl.757d7b6f.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * This source file is part of the Swift.org open source project 3 | * 4 | * Copyright (c) 2021 Apple Inc. and the Swift project authors 5 | * Licensed under Apache License v2.0 with Runtime Library Exception 6 | * 7 | * See https://swift.org/LICENSE.txt for license information 8 | * See https://swift.org/CONTRIBUTORS.txt for Swift project authors 9 | */ 10 | (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["highlight-js-perl"],{"6a51":function(e,n){function t(e){const n=e.regex,t=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],s=/[dualxmsipngr]{0,12}/,r={$pattern:/[\w.]+/,keyword:t.join(" ")},i={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:r},a={begin:/->\{/,end:/\}/},o={variants:[{begin:/\$\d/},{begin:n.concat(/[$%@](\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@][^\s\w{]/,relevance:0}]},c=[e.BACKSLASH_ESCAPE,i,o],g=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],l=(e,t,r="\\1")=>{const i="\\1"===r?r:n.concat(r,t);return n.concat(n.concat("(?:",e,")"),t,/(?:\\.|[^\\\/])*?/,i,/(?:\\.|[^\\\/])*?/,r,s)},d=(e,t,r)=>n.concat(n.concat("(?:",e,")"),t,/(?:\\.|[^\\\/])*?/,r,s),p=[o,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),a,{className:"string",contains:c,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:l("s|tr|y",n.either(...g,{capture:!0}))},{begin:l("s|tr|y","\\(","\\)")},{begin:l("s|tr|y","\\[","\\]")},{begin:l("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:d("(?:m|qr)?",/\//,/\//)},{begin:d("m|qr",n.either(...g,{capture:!0}),/\1/)},{begin:d("m|qr",/\(/,/\)/)},{begin:d("m|qr",/\[/,/\]/)},{begin:d("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return i.contains=p,a.contains=p,{name:"Perl",aliases:["pl","pm"],keywords:r,contains:p}}e.exports=t}}]); --------------------------------------------------------------------------------