maddinat0r / samp-log-core

Core library for logging utility
MIT License
20 stars 6 forks source link

clear log on logger creation #13

Closed maddinat0r closed 5 years ago

maddinat0r commented 6 years ago

Adding a way to clear the log on creation would be a nice feature. Probably pass a parameter to CreateLogger, check if it's set in LogManager::RegisterLogger and clear/delete the log file.

maddinat0r commented 5 years ago

Resolved in 5544cb210b255e73a762a4b17003f9c056ff2d19. Added a config option to clear the log file on startup:

Logger:
  plugins/mysql:
    LogLevel: All
    Append: false # clears the log file on logging start instead of appending to it