mowispace / react-native-logs

Performance-aware simple logger for React-Native and Expo with namespaces, custom levels and custom transports (colored console, file writing, etc.)
MIT License
467 stars 33 forks source link

Date format with using {date-today} #92

Closed BohdanBida closed 1 month ago

BohdanBida commented 7 months ago

When I describe a file name, I want a separate file to be created every day but with date using my format (e.g. using usa format instead of default)

How to do it? I didn't find this in the documentation and I think it's currently not possible.

codejudas commented 6 months ago

+1 Honestly would just be nice if it used the format YYYY-MM-DD instead of DD-MM-YYYY so that files can be sorted lexicographically in the days they cover.

alessandro-bottamedi commented 1 month ago

in v 5.2.0 Added fileNameDateType option to the file transport for selecting the date format: eu "DD-MM-YYYY", us "MM-DD-YYYY", iso "YYYY-MM-DD". (eu default format)