# Shouldn't StaticString be OSLogPrivacy.public by default?

**URL:** <https://forums.swift.org/t/shouldnt-staticstring-be-oslogprivacy-public-by-default/47488>\
**Category:** Standard Library\
**Created:** [April 16, 2021, 2:35pm UTC](https://forums.swift.org/t/shouldnt-staticstring-be-oslogprivacy-public-by-default/47488 "2021-04-16T14:35:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gutley](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/gutley/32/15904_2.png) [@gutley](https://forums.swift.org/u/gutley)\
**Post date:** [April 16, 2021, 2:35pm UTC](https://forums.swift.org/t/shouldnt-staticstring-be-oslogprivacy-public-by-default/47488/1 "2021-04-16T14:35:13Z")

</div>

Given

```swift
        let success: Bool = doSomething()
        let logAppendage: StaticString
        
        if success {
            logAppendage = "succeeded"
        } else {
            logAppendage = "failed"
        }
        Core.logger.log("doSomething \(logAppendage)")

```

I was surprised that the log ended up as "doSomething \<private\>"

Since logAppendage is explicitly a StaticString and hence everything is known at compile time, why is it not public by default?
