Jump to content
alt:V Multiplayer Forum
Creed

alt:V - Logger

Recommended Posts

Hey Guys,

i write a little resource that give you an easy logger so you can highlight your logs with colors and tags.

The logger got these Tags:

  • INFO
  • SUCCESS
  • WARNING
  • ERROR
  • DEBUG

Also you can use simple colors without the tags.

Available colors:

  • red
  • blue
  • green
  • yellow

 

Github: https://github.com/CreedDE/logger

 

Demo: log.png.dcd710c930525e57d4b07f0e5d956c91.png

 

 

How to use: 

import * as logger from 'logger';

alt.on(playerConnect, (player) => {
	logger.info('connected to the server', player.name)
});


// logger.info('hello world', player.name);
// -> Creed hello world

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...