Иконка ресурса

Log Finder 1.1

Нет прав для скачивания
  • Автор темы Автор темы Xpace
  • Дата начала Дата начала
Сообщения
2
Реакции
0
Баллы
1
Xpace submitted a new resource:

[EN/ES] Log Finder - Log search tool for AMX Mod X - Quickly search and find any data across all server log files

Tired of searching for specific data in your server logs? So was I!

After wasting so much time looking for SteamIDs, IPs, or specific text in log files, I decided to create this tool that I've had for quite some time on my servers and today I want to share it with the community.

Log Finder is a simple but very useful plugin that allows you to search for any text in all .log files of your server and save the results in a separate file for easy review.

Main Features:
1. Fast...

Read more about this resource...
 
Код:
new modified_search[64]
copy(modified_search, charsmax(modified_search), search)
replace_all(modified_search, charsmax(modified_search), ":", "_")
Whats the purpose of creating a new variable and copying a string into it? Why wouldn't you try to work with "search" variable further?
 
Код:
new modified_search[64]
copy(modified_search, charsmax(modified_search), search)
replace_all(modified_search, charsmax(modified_search), ":", "_")
Whats the purpose of creating a new variable and copying a string into it? Why wouldn't you try to work with "search" variable further?
Hi, Those lines you mentioned are just "leftovers" from a previous version that I forgot to delete/change.

Actually I had different plans for the plugin. My first idea was to have each search produce a new file and the filename contain teh search teminology. For example, if you searched:
code_language.pawn:
amx_findlog STEAM_0:0:123456

I wanted it to produce the following file STEAM_0_0_123456.log as opposed to the generic findlog.log. That's why I was replacing colons with underscores ( : to _ ), since Windows doesn't allow certain characters like : in filenames.

In the end, however, I decided to keep it simple just a single file that gets overwritten every time with a new search so as not to clutter up the logs directory.

I’m planning an update to the plugin with a couple of features I had in mind, case sensitive search and allow limiting results (a max results option)
 

Кто просматривает тему

Назад
Верх