1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

v test v => v test-compiler

This commit is contained in:
Delyan Angelov
2019-12-01 11:50:13 +02:00
committed by Alexander Medvednikov
parent 854309a7d8
commit ec15bfb7d1
29 changed files with 431 additions and 280 deletions

5
examples/.gitignore vendored
View File

@@ -12,3 +12,8 @@
/hello_v_js
/fibonacci
/sqlite
empty_gg_freetype
game_of_life/life_gg
random_ips
vweb/vweb_example
x64/hello_world

View File

@@ -1,7 +1,12 @@
import log
fn main() {
mut l := log.Log { log.LogLevel.info, 'info', true }
mut l := log.Log{}
l.set_level(log.INFO)
// Make a new file called info.log in the current folder
l.set_full_logpath('./info.log')
println('Please check the file: ${l.output_file_name} after this example crashes.')
l.info('info')
l.warn('warn')
l.error('error')