Skip to content

Commit

Permalink
Fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
honghaoz committed Apr 25, 2016
1 parent 14b7ca9 commit 6b53fa8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Source/Loggerithm.swift
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public struct Loggerithm {
- returns: The string logged out.
*/
public func verbose(format: String = "", function: String = #function, file: String = #file, line: Int = #line, args: CVarArg...) -> String? {
public func verbose(format: String = "", function: String = #function, file: String = #file, line: Int = #line, args: CVarArgType...) -> String? {
if .Verbose >= logLevel {
return log(.Verbose, function: function, file: file, line: line, format: format, args: args)
}
Expand Down Expand Up @@ -190,7 +190,7 @@ public struct Loggerithm {
- returns: The string logged out.
*/
public func debug(format: String = "", function: String = #function, file: String = #file, line: Int = #line, args: CVarArg...) -> String?
public func debug(format: String = "", function: String = #function, file: String = #file, line: Int = #line, args: CVarArgType...) -> String?
{
if .Debug >= logLevel {
return log(.Debug, function: function, file: file, line: line, format: format, args: args)
Expand Down Expand Up @@ -223,7 +223,7 @@ public struct Loggerithm {
- returns: The string logged out.
*/
public func info(format: String = "", function: String = #function, file: String = #file, line: Int = #line, args: CVarArg...) -> String?
public func info(format: String = "", function: String = #function, file: String = #file, line: Int = #line, args: CVarArgType...) -> String?
{
if .Info >= logLevel {
return log(.Info, function: function, file: file, line: line, format: format, args: args)
Expand Down Expand Up @@ -256,7 +256,7 @@ public struct Loggerithm {
- returns: The string logged out.
*/
public func warning(format: String = "", function: String = #function, file: String = #file, line: Int = #line, args: CVarArg...) -> String?
public func warning(format: String = "", function: String = #function, file: String = #file, line: Int = #line, args: CVarArgType...) -> String?
{
if .Warning >= logLevel {
return log(.Warning, function: function, file: file, line: line, format: format, args: args)
Expand Down Expand Up @@ -289,7 +289,7 @@ public struct Loggerithm {
- returns: The string logged out.
*/
public func error(format: String = "", function: String = #function, file: String = #file, line: Int = #line, args: CVarArg...) -> String?
public func error(format: String = "", function: String = #function, file: String = #file, line: Int = #line, args: CVarArgType...) -> String?
{
if .Error >= logLevel {
return log(.Error, function: function, file: file, line: line, format: format, args: args)
Expand All @@ -309,7 +309,7 @@ public struct Loggerithm {
- returns: The string logged out.
*/
public func logWithLevel(level: LogLevel, _ format: String = "", function: String = #function, file: String = #file, line: Int = #line, args: CVarArg...) -> String?
public func logWithLevel(level: LogLevel, _ format: String = "", function: String = #function, file: String = #file, line: Int = #line, args: CVarArgType...) -> String?
{
if level >= logLevel {
return log(level, file: file, function: function, line: line, format: format, args: args)
Expand All @@ -329,7 +329,7 @@ public struct Loggerithm {
- returns: The string logged out.
*/
private func log(level: LogLevel, function: String = #function, file: String = #file, line: Int = #line, format: String, args: [CVarArg]) -> String
private func log(level: LogLevel, function: String = #function, file: String = #file, line: Int = #line, format: String, args: [CVarArgType]) -> String
{
let dateTime = showDateTime ? (UsingNSLog ? "" : "\(dateFormatter.stringFromDate(NSDate())) ") : ""
let levelString = showLogLevel ? "[\(LogLevel.descritionForLogLevel(level))] " : ""
Expand Down

0 comments on commit 6b53fa8

Please sign in to comment.