Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Vertex AI] Make Logger properties constants #13570

Merged
merged 1 commit into from
Sep 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions FirebaseVertexAI/Sources/Logging.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ struct Logging {

/// The default logger that is visible for all users. Note: we shouldn't be using anything lower
/// than `.notice`.
static var `default` = Logger(subsystem: subsystem, category: defaultCategory)
static let `default` = Logger(subsystem: subsystem, category: defaultCategory)

/// A non default
static var network: Logger = {
static let network: Logger = {
if additionalLoggingEnabled() {
return Logger(subsystem: subsystem, category: "NetworkResponse")
} else {
Expand All @@ -51,7 +51,7 @@ struct Logging {
}()

///
static var verbose: Logger = {
static let verbose: Logger = {
if additionalLoggingEnabled() {
return Logger(subsystem: subsystem, category: defaultCategory)
} else {
Expand Down
Loading