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:

committed by
Alexander Medvednikov

parent
854309a7d8
commit
ec15bfb7d1
5
examples/.gitignore
vendored
5
examples/.gitignore
vendored
@@ -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
|
||||
|
@@ -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')
|
||||
|
Reference in New Issue
Block a user