mirror of
https://github.com/stashapp/stash.git
synced 2026-04-21 14:34:16 +02:00
Add full timestamp for console/file logging (#1130)
This commit is contained in:
parent
01da28010d
commit
711496e9f4
2 changed files with 6 additions and 0 deletions
|
|
@ -29,6 +29,11 @@ var logBuffer []LogItem
|
|||
// Init initialises the logger based on a logging configuration
|
||||
func Init(logFile string, logOut bool, logLevel string) {
|
||||
var file *os.File
|
||||
customFormatter := new(logrus.TextFormatter)
|
||||
customFormatter.TimestampFormat = "2006-01-02 15:04:05"
|
||||
customFormatter.ForceColors = true
|
||||
customFormatter.FullTimestamp = true
|
||||
logger.SetFormatter(customFormatter)
|
||||
|
||||
if logFile != "" {
|
||||
var err error
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
### 🎨 Improvements
|
||||
* Make logging format consistent across platforms and include full timestamp.
|
||||
* Remember gallery images view mode.
|
||||
* Add option to skip checking of insecure SSL certificates when scraping.
|
||||
* Auto-play video previews on mobile devices.
|
||||
|
|
|
|||
Loading…
Reference in a new issue