mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-09 18:00:33 +08:00
Use system-default locale for logging
This commit is contained in:
parent
6b85dd536b
commit
7da6a50284
@ -102,7 +102,7 @@ internal open class StdoutLogger constructor(
|
|||||||
else debug(message.toString())
|
else debug(message.toString())
|
||||||
}
|
}
|
||||||
|
|
||||||
protected open val timeFormat: DateFormat = SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.SIMPLIFIED_CHINESE)
|
protected open val timeFormat: DateFormat = SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.getDefault())
|
||||||
|
|
||||||
private val currentTimeFormatted get() = timeFormat.format(Date())
|
private val currentTimeFormatted get() = timeFormat.format(Date())
|
||||||
|
|
||||||
|
@ -106,7 +106,7 @@ public actual open class PlatformLogger constructor( // same as StdoutLogger bu
|
|||||||
else debug(message.toString())
|
else debug(message.toString())
|
||||||
}
|
}
|
||||||
|
|
||||||
protected open val timeFormat: DateFormat = SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.SIMPLIFIED_CHINESE)
|
protected open val timeFormat: DateFormat = SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.getDefault())
|
||||||
|
|
||||||
private val currentTimeFormatted get() = timeFormat.format(Date())
|
private val currentTimeFormatted get() = timeFormat.format(Date())
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user