Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › MultiPlayer Game Hacks & Cheats › Combat Arms Hacks & Cheats › Combat Arms Brazil Hacks › Combat Arms BR Hack Coding/Source Code › Simples Classe Para Logger

PostSimples Classe Para Logger

Posts 1–3 of 3 · Page 1 of 1
CO
Coder.UnkNóia
Simples Classe Para Logger
[Simples Classe Para Logger]

[HTML]Public Class Logger
Public LocalLog As String
Public Sub New(ByVal Local As String)
LocalLog = Local
End Sub

Public Sub InicioDoLog()
If (File.Exists(LocalLog)) Then
File.WriteAllText(LocalLog, "Endereço Logger By gusdnide")
End If
End Sub
Public Sub AddLog(ByVal Texto As String)
If (File.Exists(LocalLog) = True) Then
Dim Inicio As String = "[" + Date.Now.ToString + "] - "
Dim Ler As String = File.ReadAllText(LocalLog)
File.WriteAllText(LocalLog, Ler + Environment.NewLine + Inicio + Texto)
Else
File.Create(LocalLog)
AddLog(Texto)
End If
End Sub
End Class[/HTML]

Bom um simples jeito de uso é esse:

[HTML]Dim Local As String = Application.StartupPath + "\Log.txt" 'Local onde o Log Será salvo
Dim Log As New Logger(Local)

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Log.AddLog("gusdnide")
End Sub

Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
Log.InicioDoLog()
End Sub[/HTML]

Saída:

[HTML]Endereço Logger By gusdnide
[25/07/2015 14:37:59] - gusdnide
[25/07/2015 14:38:00] - gusdnide
[25/07/2015 14:38:00] - gusdnide
[25/07/2015 14:38:00] - gusdnide
[25/07/2015 14:38:00] - gusdnide
[25/07/2015 14:38:01] - gusdnide
[25/07/2015 14:38:01] - gusdnide
[25/07/2015 14:38:01] - gusdnide
[25/07/2015 14:38:01] - gusdnide
[25/07/2015 14:38:01] - gusdnide
[21/06/2015 14:38:01] - gusdnide[/HTML]



Coder.UnkNóia



Coder.Gusd (Programador Gostoso)
#1 · 11y ago
dllbaseII
dllbaseII
Qual a finalidade disso? Quer ensinar o pessoal a manipular .txt no .net? really?
Muito simples e sem utilidade ao meu ver, o que você postou não é um logger, só escrever o horário num txt....
Me diga uma finalidade para isso...
#2 · 11y ago
King Of Death
King Of Death
Quote Originally Posted by dllbaseII View Post
Qual a finalidade disso? Quer ensinar o pessoal a manipular .txt no .net? really?
Muito simples e sem utilidade ao meu ver, o que você postou não é um logger, só escrever o horário num txt....
Me diga uma finalidade para isso...
Cho que log é para ver o que está acontecendo no aplicativo quando ele está em execução. Existem outras formas muito mais eficiente de fazer isso... também não vejo utilidade nesse log que ele postou ...
#3 · 11y ago
Posts 1–3 of 3 · Page 1 of 1

Post a Reply

Similar Threads

  • [Tutorial]Simple class explanations[Stickied]By Ghost in World of Warcraft Tutorials
    20Last post 13y ago
  • Server Hack - Simple ClassBy Jorndel in Call of Duty Modern Warfare 3 Coding, Programming & Source Code
    8Last post 13y ago
  • First Lieutenant 4th Class - Para, Fr-F2, and more!By fun123 in Alliance of Valiant Arms (AVA) Selling / Trading / Buying
    1Last post 12y ago
  • Simple Player Join LoggerBy GreenFatso in Garry's Mod Hacks & Cheats
    6Last post 12y ago
  • pwde bahhh simple hack para maganda pwde rin nr langBy jamharie in WarRock Philippines Hacks
    1Last post 13y ago

Tags for this Thread

None