Skip to content

Commit

Permalink
fixed public accessors
Browse files Browse the repository at this point in the history
  • Loading branch information
kibotu committed Nov 5, 2024
1 parent 1c391c3 commit e34563c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Sources/Orchard/Console/ConsoleLogger.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Foundation

/// A concrete implementation of Orchard.Logger that logs messages to the console
class ConsoleLogger: Orchard.Logger {
public class ConsoleLogger: Orchard.Logger {

/// The minimum log level this logger will process (set to verbose by default)
let level: Orchard.Level = Orchard.Level.verbose
Expand Down
8 changes: 4 additions & 4 deletions Sources/Orchard/Orchard.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ import Foundation
public class Orchard {

/// Array of loggers that will receive log messages
static var loggers = [Orchard.Logger]()
public static var loggers = [Orchard.Logger]()

/// Current tag to be applied to the next log message
static private var _tag: String?
static private var _tag: String?
static private let lock = NSLock()

static private var tag: String? {
Expand Down Expand Up @@ -76,7 +76,7 @@ public class Orchard {
/// - Parameter tag: A string to categorize the log message
/// - Returns: The Orchard type for method chaining
@discardableResult
static func tag(_ tag: String) -> Orchard.Type {
public static func tag(_ tag: String) -> Orchard.Type {
self.tag = tag
return self
}
Expand All @@ -86,7 +86,7 @@ public class Orchard {
/// - Parameter icon: A character to visually represent the log message
/// - Returns: The Orchard type for method chaining
@discardableResult
static func icon(_ icon: Character?) -> Orchard.Type {
public static func icon(_ icon: Character?) -> Orchard.Type {
self.icon = icon
return self
}
Expand Down

0 comments on commit e34563c

Please sign in to comment.